Monday, June 04, 2007

Some Windows Tips

Rename multiple files at once
Say you have many files like c6_sabab.txt c6_adfafa.txt ... etc. etc. and you want to rename them to c5_sabab.txt, c5_adfafa.txt... etc. etc.

rename c6_*.txt c5_*.txt

does the trick.

CREATE RIGHT-CLICK OPTION TO OPEN COMMAND PROMPT WINDOW

If you're from the old school and still use the command prompt regularly, then this tip is for you. You can create a new right-click option to open a command prompt window from the directory you're currently working in.

1. Open your Registry using "RegEdit" (not "RegEdit32"), and find the key HKEY_CLASSES_ROOT\Directory\Shell.
2. Create a new sub key called "CommandPrompt" as in HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt.
3. Change the value of default within the key to equal the text you would like on the right-click menu, for example 'Open Command Prompt....'
4. Create another new subkey under the key you just created, and name this subkey "command" as in HKEY_CLASSES_ROOT\Directory\shell\CommandPrompt\command.
5. Change the value of default within this key depending on your OS to equal either:
* Windows 9x : command.com /k cd "%1"
* Windows NT : cmd.exe /k cd "%1"
6. Now right-click a folder, and the new option of "Open Command Prompt..." should be available.

AUTO-COMPLETING DIRECTORY PATH NAMES

You can configure Windows NT to automatically complete long directory path names.

1. Begin by editing your computer's registry (run regedt32.exe).
2. Access the registry key HKEY_CURRENT_USER\Software\Microsoft\Command Prompt.
3. In the pane on the right, double-click on the "CompletionChar" value.
4. By changing "CompletionChar" from 0 to 9, you configure Windows NT to automatically complete paths for you in a Command Prompt window.

To try out your change, open a Command Prompt window. Type cd p, then press the TAB key. You should see that Windows NT automatically fills in the path for you with the first directory on your hard drive that begins with the letter "p."

No comments: