Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Write Our First Tests

HAROLD ARELLANO
HAROLD ARELLANO
155 Points

What are the equivalent DOS commands in windows for "rm", "mkdir"?

I can not continue with the tutorial if I can not run commands like,

$mkdir -p spec/features/todo_lists

I get an syntax error in windows: "The syntax of the command is incorrect."

3 Answers

Seth Kroger
Seth Kroger
56,413 Points

Windows doesn't need the -p flag for mkdir and the sort-of equivalent for rm is del.

HAROLD ARELLANO
HAROLD ARELLANO
155 Points

Thank you Seth. I just signed up today. I was just thinking of buying a mac.

Alvaro Carrillo
Alvaro Carrillo
5,770 Points

The commands are ok the difference is that in windows you should use backslashes () on the Cmder. Beware though when you refer to a web address since you should use regular slashes (/).