Computing.Net > Forums > Disk Operating System > invalid directory when using cd command

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

invalid directory when using cd command

Reply to Message Icon

Name: Dan
Date: August 1, 2001 at 03:29:22 Pacific
Comment:

I am trying to change directory into a foder named server6.0 using dos(using c:\>cd server6.0 )and keep getting invalid directory error even though though the directory exists. I realise this is not a valid msdos file directory name but is there a way round this - Can anybody help me ? my operating system is windows 2000



Sponsored Link
Ads by Google

Response Number 1
Name: michael
Date: August 1, 2001 at 06:02:05 Pacific
Reply:

Yes,

Try cd "server6.0"

Although I have windows 2000 and I was able to cd to a directory named server6.0 without using the quotes. Check the attributes for the directory as it may be a system directory directory.
(Just type attrib at the root directory and see if the s attribute is set for that directory). I take that back, I set the system attribute and was still able to cd to the directory. I have no idea what your problem is. Perhaps your FAT has errors.


Hope that helps,
-Michael


0

Response Number 2
Name: jboy
Date: August 1, 2001 at 14:56:33 Pacific
Reply:

Folders (or directories) under old DOS follow the 8.3 convention, as well, certain symbols cannot be used (? * | and others). Server6.0 IS a valid directory name. Is the path correct - that is, would the pathname be C:\server6.0 ?
DOS commands are relative to 'where' you are issuing them from, the "\" indicates the root of the C: drive, and should be included if your "location" is some other directory (such as windows) - otherwise cd server6.0 would send you to a subdirectory of of your current "location" - such as c:\windows\server6.0 - which prob'ly doesn't exist (invalid directory).
As Michael mentions, quotes can be used when specifying a "long" directory name - but shouldn't be needed in this case.


0

Response Number 3
Name: fred6008
Date: August 2, 2001 at 21:13:55 Pacific
Reply:

Some folders simply will not let you into them. Some hidden \restore folders in Windows ME are like this.


0

Response Number 4
Name: Pat Ciccone
Date: November 10, 2001 at 16:05:39 Pacific
Reply:

If you are using the "command.exe" command from the run field this will give you the invalid directory when using the cd command for Windows 2000. Use the cmd.exe command or from the winnt directory make a shortcut of the cmd.exe to the desktop. You will be able to successfully use the cd command regardless of the long directory name. Also, with this shortcut you can change properties to suit one's preference and set the screen to scroll by setting the height to 999. This will work.


0

Response Number 5
Name: Ken Januski
Date: December 12, 2001 at 06:42:41 Pacific
Reply:

The cmd.exe works! Though I'm never surprised at Microsoft breaking something that works I must say they never cease to amaze me. I'm surprised they haven't rewritten the code to have "cd" mean "del". I really can't believe I needed to get on the Internet to solve this but I sure am thankful to those who figured it out.

Thanks much!


0

Related Posts

See More



Response Number 6
Name: Jimmy L. C.
Date: January 21, 2002 at 15:37:26 Pacific
Reply:

Use the quotes (") for accesing those directories:

cd "Documents and settings" (example)


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: invalid directory when using cd command

deleting folders in dos www.computing.net/answers/dos/deleting-folders-in-dos/7754.html

Need help saving hard drive info using dos commands www.computing.net/answers/dos/need-help-saving-hard-drive-info-using-dos-commands/4898.html

DOS command CHDIR to CD-ROM drive??? www.computing.net/answers/dos/dos-command-chdir-to-cdrom-drive/1707.html