Command Chdir

  • Thread starter Thread starter Frank Malone
  • Start date Start date
F

Frank Malone

I can type cd mymusic and will change to this dir.

I type cd my music and says to many parameters. So must be looking at space
between my and music. I'm using xp prof SP3 and I think this may be the
problem. At least I used to be able to use cd with a space in file name. I
tried using quitation marks, don't work. Please help on this problem.
 
Bob that fixed the problem, thank you so much. I did a lot of searching
internet. I could not find any help on this.
 
Frank Malone said:
I can type cd mymusic and will change to this dir.

I type cd my music and says to many parameters. So must be looking at
space between my and music. I'm using xp prof SP3 and I think this may be
the problem. At least I used to be able to use cd with a space in file
name. I tried using quitation marks, don't work. Please help on this
problem.

As a general rule, when a file or folder name contains an embedded space
then you must enclose it with double quotes. Instead of typing

cd my music

you must type

cd "my music"

There is actually an exception to this rule: The "CD" command . . . - but
only when you use the correct command processor, which is "cmd.exe" (as Bob
I recommended)! So there are two pieces of advice:
1. Use cmd.exe, never command.com.
2. Surround your file/folder names with double quotes.
 
You're welcome, have a great day.

Frank said:
Bob that fixed the problem, thank you so much. I did a lot of searching
internet. I could not find any help on this.
 

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

Similar Threads


Back
Top