free counters
6:30 AM

DOS prompt usage

Posted by cricket is my life

Showing Long and Short Filenames
There are two additional switches that can be used when doing a DIR
1. /B - Shows only the long filename, no details
2. /Z - Shows the short filename, with details
3. /B /Z - Shows only short filename, with no details

Setting the Number of Lines in a DOS Window
To set the number of lines displayed when you open up a DOS window:
1. Create a shortcut for the MS-DOS Prompt
2. Right click on it
3. Select Properties
4. Click on the Program tab
5. In the Batch file:, line enter mode con: lines=xx (where xx is the number of lines you want displayed)
6. Valid numbers for xx are 25 or 43.

Long Filenames in a DOS Box

More long filenames in DOS paths...
You don't need the close double quote when entering long folder names in DOS.
CD "\program filesworks as well asCD "\program files"
You can use long file names in a MS DOS Box.All you have to do is pu the long file name in quotes.
Example: cd "program files"

Adding DOSKEY to your DOS Window

One way to have DOSKEY available when you open a DOS window would be to have it in the AUTOEXEC.BAT file.This takes away conventional memory, even when you don't have a DOS window open.To only use DOSKEY when you open a DOS window:
1. Right click on your DOS shortcut
2. Select Properties
3. Click on the Program tab
4. Add DOSKEY > NUL to the Batch File field
5. You can also add /INSERT if you prefer

Easy way to open up DOS prompt in a specific directory

With the advent of long directory names, it can be difficult to open up a DOS box and CD to the directory you wantparticularly if it is several layers of long names deep.
An easy way is to:
1. Open up Explorer and highlight the directory you want to be in
2. Select Run / Command from the Start Menu
3. Your DOS prompt will now be in the directory you highlighted in Explorer

0 comments: