Command prompt does not accept special characters in folder name

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?
 
J

Joe Grover

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
 
J

JS

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

JS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top