cd in DOS for directory names with whitespace

  Charence 18:53 16 Jan 06


I've just been trying to change the directory I'm working on in DOS to a directory which has a space in its name. I was unable to do this, it gave me an error message saying "Parameter format not correct"

I typed: cd "C:\Documents and Settings\Charence Wong\My Documents"

which returned the error message 'Parameter format not correct - "C:\Documents'

I also searched the net to look for solutions and tried dragging and dropping the folder onto the DOS window which generated the directory path, however, when I pressed enter the same error message appeared. My OS is XP Home. Any ideas how I can get cd to work?

Many Thanks,


  Thalmus 19:07 16 Jan 06

you need to use the first 6 characters plus tilda and 1 (¬1), so for your example it would be

cd c:\docume¬1\charen¬1\mydocu¬1

  Charence 19:12 16 Jan 06

Thank you Thalmus!

This thread is now locked and can not be replied to.

Nintendo Switch review: Hands-on with the intuitive modular console and its disappointing games…

1995-2015: How technology has changed the world in 20 years

This abstract video touches on division in our technologic world

Best alternatives to iTunes for Mac | Best music players for macOS: Free your music from the…