Command prompt does not accept special characters in folder name

  • Thread starter Thread starter hmm
  • Start date Start date
H

hmm

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

"hmm" <hmm@discussions.microsoft.com> wrote in message
news:22E332F9-1DA9-428D-A9D5-62B30321E955@microsoft.com...
>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?
>
>
 
You need quotes because of the white space on each side of the &.
Example: cd "clippings & drafts"

JS

"hmm" <hmm@discussions.microsoft.com> wrote in message
news:22E332F9-1DA9-428D-A9D5-62B30321E955@microsoft.com...
>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?
>
>
 
Back
Top