DOS Tips
![]()
There are two additional switches that can be used when doing a DIR
If you use DOSKEY in either your AUTOEXEC.BAT file or as part of the
properties of your
you can show and recall the history of commands you enter and the DOS
prompt.
You can change the Date and Time stamp of a file to the current setting.
Type:
COPY filename /B + ,, /Y
By default, when you open a DOS window, the Microsoft Copyright notice shows.
To disable it, add the /K switch in the Program tab
For example: C:\WINDOWS\COMMAND.COM /k
To set the number of lines displayed when you open up a DOS window:
Submitted by John Karwoski
Want to start DOS fast outside of the START button? Drag it to your desktop.
Want to start it even FASTER without the mouse?
More long filenames in DOS paths...
You don't need the close double quote when entering long folder names in DOS.
CD "\program files
works as well as
CD "\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"
NT 4.0 Only
Expand full path/file name with defined char using Command Prompt in Win NT 4.0
You can expand the full name of a file or directory using a character of your choice.
You can test it:
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:
Added 4/6/97
If you want to see what error codes are being generated by DOS programs,
start your DOS session with the addition of a /Z parameter to the
COMMAND.COM program.
Normally, you can move up one directory level by typing CD ..
The DOS with Windows95 allows you to continue moving up beyond the first
directory by simply adding more periods
For example, to move up two levels, type CD ...
If you have to enter a long path and program name in a DOS window,
This can come is useful with the long path names and all the ~'s you would
normally need to type.
If you need to change directories, type in the CD before you drag the
directory.
Added 1/26/97
When you normally create a shortcut for a DOS program, it does not prompt you
for any input and just runs the program
To change that, simply add a ? after the program name in the CMD
field.
For example:
C:\WINDOWS\COMMAND\EDIT.COM ?
will start the DOS editor and prompt you for a file name to edit.
To see your free memory and other useful info in detail:
With the advent of long directory names, it can be difficult to open up a DOS
box and CD to the directory you want
particularly if it is several layers of long names deep.
An easy way is to: