cd in DOS for directory names with whitespace

  Charence 18:53 16 Jan 2006


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 2006

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 2006

Thank you Thalmus!

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

Elsewhere on IDG sites

WPA2 hack: How secure is your Wi-Fi?

Add Depth Of Field to a photo using Tilt Shift Blur in Photoshop

iPhone tips & tricks

Les meilleures tablettes 2017