View Full Version : Command prompt does not accept special characters in folder name
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?
Joe Grover
July 3rd 07, 03:24 PM
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" > wrote in message
...
>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" > wrote in message
...
>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?
>
>
vBulletin® v3.6.4, Copyright ©2000-2024, Jelsoft Enterprises Ltd.