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

janeporter
PLUS
janeporter
Courses Plus Student 23,471 Points

mkdir -p spec/features/todo_lists command does not work on Windows command line

trying to create a directory using 'mkdir -p spec/features/todo_lists' command, but i'm getting a syntax error on Windows command line...

'the syntax of the command is incorrect'

so...what would be the command for Windows??

4 Answers

Jeremy Kerrigan
Jeremy Kerrigan
12,002 Points

ahh looks like Jason uses forward slashes and when I used backslashes and also omitting the -p in the code it worked for me on Windows 7.

mkdir \spec\features\todo_lists

Seth Kroger
Seth Kroger
56,413 Points

The MSDOS version of mkdir works without the -p, so remove it.

Jeremy Kerrigan
Jeremy Kerrigan
12,002 Points

Same problem as Jane. I tried that taking out the -p, Seth Kroger, and it still doesn't work. Any other suggestions? Thanks

Backslashes are your friend. UNIX specifies file names with forwards slashes. Windows: Backslashes.