Re: Changing directory in command prompt



Peter Aitken wrote:
I need to execute a command line program in a specific folder. I have used Start, Run to open a command prompt but am having trouble using CD to change to the proper folder. The problem is that the path includes spaces. Thus

CD program files

does not work nor does

CD "program files"

How can I get the command prompt to the proper folder?

Are you using command.com or cmd.exe? If using command.com you need to pass it the 8.3 name of the folder. Ex:


cd progra~1

Better is to use cmd.exe where, where either of the two formats you have listed above will work.
--
Tom Porterfield
MS-MVP Windows
http://support.telop.org


Please post all follow-ups to the newsgroup only.
.



Relevant Pages