1.

Solve : ~ symbol in DOS?

Answer»

I'm TRYING to start my computer up in DOS (Windows 2000) and one of the commands is
cd progra~1
I KEEP getting "invalid command".
Can you tell me how to make  "~" so DOS will read it?
I've tried Shift  ~ . Any ideas?
DOS cannot read file names of more than 8 characters and uses the "tilde" to indicate a longer file name. As your first command is Change Directory (CD) DOS cannot execute as you are trying to access a directory with an invalid file name (too long).
Rename directory with 8 or less characters.

hope this helpsTry this:

cd "program files"

As long as you are starting in C:\, this should WORK. If you aren't sure where you start from (or if you start from C:\Windows, for example), use:

cd "\program files"

The "quotes" FORCE DOS to look up the 8.3 filename from the extended attributes table.

You are aware that you are using 'emulated' DOS in NT5/2K...



Discussion

No Comment Found