DOS CMD window tips
P.N.L. said:
to get to the directory path of: C:\Documents and Settings\
you would use this for the short form:
C:\DOCUME~1\
The problem occurs if there are two or more folders/files beginning with the same six characters. Then you need to know whether to use a "2", "3", "4", etc. as the single digit. The folders/files are usually numbered by the order in which they were initially added to the drive.
To see which of the suffixes ( "2", "3", "4", etc.) corresponds to which file or directory name, use the "DIR" command: e.g.: DIR DOCU* Both the long and the short names will be displayed on the same line. Here's another DOS CMD window tip to quickly set a default directory. This is a great time saver if the directory path is very long: - Navigate to the desired directory in the Windows File Explorer, - Highlight and copy the directory address in the 'Address' window at the top of the File Explorer to the Windows Clipboard: <ctrl><C>, - In the DOS CMD window type: CD " - In WinXP: Right click the "C:\" icon in the upper left corner and select: 'Edit' > 'Paste' or, - In Win98: Click the 'Paste' button icon (a clipboard), - Type: " - Hit the <Enter> key, - Your default directory in the DOS CMD window is now the one you navigated to in the Windows File Explorer. - Hal Lane ######################### # hallane@earthlink.net # ######################### No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.467 / Virus Database: 269.8.0/817 - Release Date: 5/24/07 4:01 PM
In article <MDBBJLBFBICIIEIHFBMEMEGKDBAA.hallane@earthlink.net>, "Hal Lane" <hallane@earthlink.net> writes:
To see which of the suffixes ( "2", "3", "4", etc.) corresponds to which file or directory name, use the "DIR" command: e.g.: DIR DOCU* Both the long and the short names will be displayed on the same line.
I don't know about older operating systems, but on XP the short form will only be shown if you use /x. -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download <http://www.xmission.com/~legalize/book/download/index.html> Legalize Adulthood! <http://blogs.xmission.com/legalize/>
participants (2)
-
Hal Lane -
Richard