Pages

Wednesday, May 12, 2010

Your Ad Here DOS Tips and Tweaks Wednesday, December 9, 2009 Posted by Team : Evilhackerz at 2:19 AM here are two additional switches that can be used

here 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


DOS Command History


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.

* To recall previous commands, use the up arrow key.
* A complete list of previous commands can be shown if you press the F7 key
* To use one, press F9 and the number of the command you want to use
* To clear the cache, press Alt+F7


Changing a File's Date and Time Stamp


You can change the Date and Time stamp of a file to the current setting.
Type:
COPY filename /B + ,, /Y

Removing the Microsoft Copyright from a DOS Prompt

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

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

Submitted by John Karwoski

Starting DOS Fast
Want to start DOS fast outside of the START button? Drag it to your desktop.
Want 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.


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 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"
Expanding Full Path or File Name

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.

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"

You can test it:

1. Open up a DOS window
2. 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

No comments: