When your directory has spaces in it, you need to wrap in in quotes.

Instead of C:\This is\a directory\ you would put "C:\This is\a directory".