chdir does not take spaces..

  • Thread starter Thread starter sskb
  • Start date Start date
S

sskb

Hi,
I am using Windows 2000 professional.
I invoke the command prompt and try to get into the
directory "Documents and Settings"..

when I try

C:\>cd "Documents and Settings"
it says..

Parameter format not correct - "Documents

how do I get into the directory??

Thanks,
Balaji.
 
I am using Windows 2000 professional.
I invoke the command prompt and try to get into the
directory "Documents and Settings"..

when I try

C:\>cd "Documents and Settings"
it says..
Parameter format not correct - "Documents
how do I get into the directory??

That is really odd because "CD" is about the only command that
takes spaces automatically with no quotes required.

In fact, it has a switch (/d) for changing DRIVE with directory that
must come FIRST so that it can distinguish the switch from the target
directory which might have spaces.

Cd Docum*settings should work just fine though -- anything fore and
aft that is unique (enough) with an asterix in the middle -- in fact most
of the time this will work too:

cd \docume*

Even:

cd Wind*Media*Player

Also, you can use the "short name" if you haven't deactivated them --
you can find them with "dir /x"

dir /x Doc* gives.... DOCUME~1 (on my machine, which is the
MOST LIKELY name on most machines but not guaranteed)
 
thanks Mark and Martin,
I had invoked "COMMAND.com".. I just noticed that.
It works when I use cmd.exe.

Thanks,
sskb
 
sskb said:
thanks Mark and Martin,
I had invoked "COMMAND.com".. I just noticed that.
It works when I use cmd.exe.

it's also handy to enable file and directory name completion, so you can
just 'cd doc<tab>' and then the full name is completed automatically with
any needed quotes
bob
 
-----Original Message-----
Hi,
I am using Windows 2000 professional.
I invoke the command prompt and try to get into the
directory "Documents and Settings"..

when I try

C:\>cd "Documents and Settings"
it says..

Parameter format not correct - "Documents

how do I get into the directory??

Thanks,
Balaji.

.
Hi Balaji

This will work.

1.) Put the directory path in quotes.
2.) use the following format for the directory
first six letters~digit

Ex. For c:\Program Files
c:\Progra~1

if there were a "C:\Program Files Mine"
it would likely be (at the command line and in
commands)
C:\Progra~2

Either one of these methods should work fine
 
C:\
cd pro*

Hi,
I am using Windows 2000 professional.
I invoke the command prompt and try to get into the
directory "Documents and Settings"..

when I try

C:\>cd "Documents and Settings"
it says..

Parameter format not correct - "Documents

how do I get into the directory??

Thanks,
Balaji.
 
Back
Top