"Peter Aitken" said:
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"
That should work, provided that the command prompt window is open in
the parent folder. For example, if you want to go to C:\Program
Files, then the command prompt must show "C:\"
How can I get the command prompt to the proper folder?
A command prompt window typically opens in your user name's folder in
Documents and Settings. For example, mine opens in:
C:\Documents and Settings\Steve
To get to C:\Program Files, I can use either of these commands:
CD "C:\Program Files"
CD "..\..\Program Files"
The first one specifies a full path name including the drive letter.
The second one specifies a relative path name, using ".." to move up
one level at a time.
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)
Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.
Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com