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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DOS cd command yields "too many parameters" response

Status
Not open for further replies.

cxi108

Technical User
Feb 21, 2002
1
US
Basically I am going back to 1982 with a DOS question. I am trying to create a batch command to automatically clear out a bad mail folder, and cannot get this to happen. There is a folder in the path that is less than 8 characters, but has a space in the name. Normally, if I were to go to c:\Program Files I could type c:\progra~1 and that would get me there, but the syntax is 8 characters for this ~1 "shortcut" to work. I am trying to go into say folder c:\progra~1\abc 1\ and it is giving me an error on the abc 1 protion of that command. abc~1 does not work since this has to be 8 characters in length. Is there some syntax that I have forgotten, or does anyone know how to do this? Renaming the folder is not a practical option. Anyone? Thanks in advance...
 
Put quotes around the path.

cd "c:\program files\abc 1\" Marc Creviere
 
Couldn't you just use the cmd instead of command for the command line interface? Then you would be be able to use long file names?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top