dos prompt tips
TRANSCRIPT
8/8/2019 DOS Prompt Tips
http://slidepdf.com/reader/full/dos-prompt-tips 1/6
OS Prompt Tips
Bob Cerelli's Windows
Page Web
DOS Tips
For an excellent range of Windows security and utility products,
I highly recommend PC Tools Software
owing Long and Short Filenames - Added 1/8/00
OS Command History - Added 12/21/99
anging a File's Date and Time Stamp - Added 12/21/99
moving the Microsoft Copyright from a DOS Prompt - Added 10/16/98
ting the Number of Lines in a DOS Window - Submitted 9/19/98
rting DOS Fast - Submitted 6/7/98ing Long Filenames in a DOS Box - Updated 4/12/98
panding Full Path or File Name - Submitted 8/30/97
ding DOSKEY to your DOS Window - Added 4/6/97
owing DOS Error Codes - Added 4/6/97
anging Directories in DOS - Added 1/26/97
tering Long Paths in a DOS Window - Added 1/26/97
ving DOS Programs Prompt for Input - Added 1/26/97
rbose Directory Listing - Submitted 10/24/96
sy way to open up DOS prompt in a specific directory - Added 6/20/96
ttp://www.onecomputerguy.com/dostips.htm (1 of 6)22/03/2007 05:50:21
Search
8/8/2019 DOS Prompt Tips
http://slidepdf.com/reader/full/dos-prompt-tips 2/6
OS Prompt Tips
howing Long and Short Filenames
ded 1/8/00
ere 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
OS Command History
ded 12/21/99
you use DOSKEY in either your AUTOEXEC.BAT file or as part of the properties of your DOS Window,
u can show and recall the history of commands you enter and the DOS prompt.
q To recall previous commands, use the up arrow key.
q A complete list of previous commands can be shown if you press the F7 key
q To use one, press F9 and the number of the command you want to use
q To clear the cache, press Alt+F7
hanging a File's Date and Time Stamp
ded 12/21/99
u can change the Date and Time stamp of a file to the current setting.
pe:
OPY filename /B + ,, /Y
emoving the Microsoft Copyright from a DOS Prompt
ded 10/16/98
default, when you open a DOS window, the Microsoft Copyright notice shows.
disable it, add the /K switch in the Program tab
r example: C:\WINDOWS\COMMAND.COM /k
ttp://www.onecomputerguy.com/dostips.htm (2 of 6)22/03/2007 05:50:21
8/8/2019 DOS Prompt Tips
http://slidepdf.com/reader/full/dos-prompt-tips 3/6
OS Prompt Tips
etting the Number of Lines in a DOS Window
bmitted 9/19/98
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
bmitted by John Karwoski
arting DOS Fast
ant to start DOS fast outside of the START button? Drag it to your desktop.
ant to start it even FASTER without the mouse?
1. Change the shortcut properties of the DOS icon to something unique, like Ctrl-Alt-Z.
2. Then to start DOS from within Win95/98?/NT just enter C-A-Z and poof! it's there.
3. If you toggle away, and hit the shortcut sequence again, you'll get the "old" DOS box, not a new one.
bmitted by Carra Bussa
ong Filenames in a DOS Box
bmitted 4/12/98
ore long filenames in DOS paths...
u don't need the close double quote when entering long folder names in DOS.
CD "\program files
works as well as
CD "\program files"
bmitted by Patrick Knoll
bmitted 2/19/96
ttp://www.onecomputerguy.com/dostips.htm (3 of 6)22/03/2007 05:50:21
8/8/2019 DOS Prompt Tips
http://slidepdf.com/reader/full/dos-prompt-tips 4/6
OS Prompt Tips
u can use long file names in a MS DOS Box.
you have to do is pu the long file name in quotes.
ample: cd "program files"
bmitted by Simon Story
xpanding Full Path or File Name
T 4.0 Only
bmitted 8/30/97
pand full path/file name with defined char using Command Prompt in Win NT 4.0
u can expand the full name of a file or directory using a character of your choice.
1. Close all Command Prompts
2. Start the Registry Editor
3. Open HKEY_CURRENT_USER\Software\Microsoft\Command Processor
4. If not present, add Key: CompletionChar
5. If you like to use TAB-Key for expand: set value (REG_SZ): "9"
u can test it:
1. Open up a DOS window2. Type: CD (followed by TAB)
3. The first available directory will appear
4. Press TAB again, the next one will appear
5. The same can be done with the DIR command
bmitted by Uwe Beierlein
dding DOSKEY to your DOS Window
ded 4/6/97
e way to have DOSKEY available when you open a DOS window would be to have it in the AUTOEXEC.BAT file.
is takes away conventional memory, even when you don't have a DOS window open.
only use DOSKEY when you open a DOS window:
q Right click on your DOS shortcut
q Select Properties
q Click on the Program tab
ttp://www.onecomputerguy.com/dostips.htm (4 of 6)22/03/2007 05:50:21
8/8/2019 DOS Prompt Tips
http://slidepdf.com/reader/full/dos-prompt-tips 5/6
OS Prompt Tips
q Add DOSKEY > NUL to the Batch File field
q You can also add /INSERT if you prefer
howing DOS Error Codes
ded 4/6/97
you want to see what error codes are being generated by DOS programs,
rt your DOS session with the addition of a /Z parameter to the COMMAND.COM program.
hanging Directories in DOS
ded 1/26/97
rmally, you can move up one directory level by typing CD ..
e DOS with Windows95 allows you to continue moving up beyond the first directory by simply adding more periods
r example, to move up two levels, type CD ...
ntering Long Paths in a DOS Window
ded 1/26/97
you have to enter a long path and program name in a DOS window,
1. Open up the Explorer
2. Go to the folder you want
3. Drag it to the DOS window
4. The path will be inserted into the window
is can come is useful with the long path names and all the ~'s you would normally need to type.
you need to change directories, type in the CD before you drag the directory.
aving DOS Programs Prompt for Input
ded 1/26/97
hen you normally create a shortcut for a DOS program, it does not prompt you for any input and just runs the program
change that, simply add a ? after the program name in the CMD field.
r example:
WINDOWS\COMMAND\EDIT.COM ?
l start the DOS editor and prompt you for a file name to edit.
ttp://www.onecomputerguy.com/dostips.htm (5 of 6)22/03/2007 05:50:21
8/8/2019 DOS Prompt Tips
http://slidepdf.com/reader/full/dos-prompt-tips 6/6
OS Prompt Tips
erbose Directory Listing
bmitted 10/24/96
see your free memory and other useful info in detail:
1. Open a DOS box
2. Go to the directory that you want to get specific info about, or if you just want to see memory info go to any directo
use the root).
3. Type DIR /V
4. The /v argument stands for "verbose".
5. All sorts of good information comes up.
bmitted by Brian Cohen
asy way to open up DOS prompt in a specific directory
ded 6/20/96
th the advent of long directory names, it can be difficult to open up a DOS box and CD to the directory you want
ticularly if it is several layers of long names deep.
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
This site is copyrighted. No portion may be reproduced without my written permission.
tt // t /d ti ht (6 f 6)22/03/2007 05 50 21