Command prompt does not accept special characters in folder name

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I tried using the command prompt to copy a file, unsuccessfully. I then
tried using the CD command, starting the from C:\> prompt, to make each
successive sub-folder of the path the default directory. I succeeded until I
got to a sub-folder with an ampersand (&) in its name. Here is the
command-prompt input and the response:

C:\Documents and Settings\hm\My Documents>cd clippings & drafts

The system cannot find the path specified.
'drafts' is not recognized as an internal or external command,
operable program or batch file.

How do I get Command Prompt to recognize this folder name?
 
Try putting the folder name in quotes. Also, pull up a dir and make sure it
didn't make seperate folders for each word (if you used the command prompt
to make the dirs).

Joe
 
You need quotes because of the white space on each side of the &.
Example: cd "clippings & drafts"

JS
 
Back
Top