Monday, May 19, 2008

Command Prompt / DOS mode Tricks

DOS Tips in XP
Windows XP cmd tip (DOS isn’t dead... it just smells funny) Some command-line folder creation examples:
To create multiple folders at once, add them directly to the "md" command:
C:\> md this is a test
To create a folder several folders deep, use:
C:\> md this\is\a\test
Creating a folder with a long name requires the double-quote at the beginning:
C:\> md "this is a test
Bonus tip: Windows XP supports the forward slash "/" as a folder divider. Unix/Linux users: don't let the DOS environment get you down. Use a Unix-style CD command to change your present working directory:
C:\> cd Windows/system32/drivers/etc

Faster DOS Printing
If you are experiencing slow printing for DOS programs with Windows2000
Go Start Run Regedit
Click Hkey_Local_Machine
Click on System
Click CurrentControlSet
Click Control
Go to the bottom of this part of the list and click WOW
Click LPT timeout and change it to a 3


Change Colors Of Command Prompt Window (2k/XP)

I got this tip from Lockergnome Windows Fanatics - October 18, 2005 Newsletter.To customize the colors of the Command Prompt Window Screen Background and Screen Text, first open a Command Prompt Window:Click Start - Run - type "cmd" (without the quotes).

Once the Command Prompt Window opens, Click the Control Box in the top left corner of the Command Prompt Window (the button that looks like a C:\ Prompt).Once the Menu opens, Click Properties - Colors - Screen Background - and change this to whatever color you wish to use. An example will be shown below, in the Selected Screen Colors dialog box, as you make different choices. Do the same for Screen Text.As you can see, there are other options you can change here as well.Once you're finished, Click OK, then type "exit" at the Command Prompt to exit the Command Prompt Window (without the quotes).

Put The Command Prompt Where You Want It -

I got this Registry Tip from the May 2004 edition of CPU Magazine:For those of you using the command prompt frequently, you can add a registry key to enable right-clicking on any folder in Windows and have the command prompt run in a box already changed to that directory.Run Regedit and find the HKEY_CLASSES_ROOT\Directory\shell key and right-click to make a New Key. Name the key cprompt, and in the Value pane set the key's default value to Command Prompt. (You can label this any way you wish. What happens is the context menu will pop-up on a folder with the label "Command Prompt," but you can give it any label you like.)Go back and right-click the cprompt subkey to make another New Key. Name it command.

Set the key's default value to C:\WINDOWS\SYSTEM32\cmd.exe /k cd "%1". Close regedit, and the effect should be immediate. Right-click on any folder and you should see Command Prompt in the context menu, and it will call up the command prompt in that subdirectory.

No comments: