Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

peculiar behaviour for CD command

Status
Not open for further replies.

kindus

IS-IT--Management
Joined
Jul 25, 2001
Messages
77
Location
US
I am finding a peculiar behaviour only on my PC, Windows NT 4 Workstation.

When I try to change to a directory with two words, I get error ---Too many parameters

eg. C:\CD Program Files
Too many parameters

But I can very well do this from any other machine
Also if I give
C:\md test dir
It creates two directories test and dir.

Please let me what is the problem and action.

thanks
 
looks like it doesn't handle long filenames anymore

Some months ago, there was a virus which damaged some dll/exe files (including a file that it needed by the system to handle long file names)
Any chance you are/were infected ?
I would
- run an antivirus
- reinstall NT workstation from scratch, just to make sure Peter Van Eeckhoutte
peter.ve@pandora.be

 
Are you running cmd.exe or command.exe ?
If you use command.exe you have to use short dos names like progra~1 however if you run cmd.exe it should take the long name format. You may want to however enclose the directory name in closed quotes.. "Program Files"

Hope this helps
Darren
 
I was actually using command, but I tried cmd without knowing it is the solution, It worked the way you mentioned. Putting quotes is not essential, at least for me.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top