john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

CMD WIN DOS configuration

Create a shortcut to your command prompt on the desktop (better yet, pin it to the start menu). Right click on the shortcut and choose properties. Fill in the last letter of the Shortcut Key Ctrl + Alt + yourkeyhere. I personally like Ctrl + Alt + \ Then type ctrl + alt + \ at your keyboard and your command prompt will start. If your focus is on another window, rather than alt + tab to find it, use the shortcut sequence again and you'll get the "old" DOS box, not a new one.

CMD Auto complete turned on permanently requires changing the registry (HKLM and/or HKCU). Also, you can change the default start directory of the cmd.exe with the Autorun key.

The user settings take precedence over the computer settings. (HKCU over HKLM).

HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor autorun REG_SZ "cd c:\"

For file name completion, double-click the PathCompletionChar value and type in hexadecimal the control character. To use the TAB key as the control character, type 9 as the value, Windows converts it to the hexadecimal 0x09.
For folder name completion change the CompletionChar value.

If you want to use the same control characters that you use for a single command session, type 0x4 for CTRL+D and 0x6 for CTRL+F. You can use the same control character for both folder and file name completion.

[HKEY_CURRENT_USER\Software\Microsoft\Command Processor] "AutoRun"=REG_SZ="cd c:\" "CompletionChar"=DWORD:00000009 "DefaultColor"=DWORD:00000000 "EnableExtensions"=DWORD:00000001 "PathCompletionChar"=DWORD:00000009

Quick Edit Mode enables easy copying and pasting from the command line. Right click on the title bar of a command line and choose properties, options tab, ensure there is a check in the Quick Edit Mode checkbox.

Error '' is an invalid current directory path. UNC paths are not supported. Defaulting to Windows directory. Cmd.exe checks to verify if a UNC name is used for the current directory. It does this because a UNC name may cause problems with child processes launched from such a console when that console is exited or halted. To allow UNC paths at command prompt modify [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor] Create key, "DisableUNCCheck"=dword:00000001

If you enable this feature and start a Console that has a current directory of an UNC name, start applications from that Console, and then close the Console, it could cause problems in the applications started from that Console.


  • « CMD WIN DOS usage
  • CMD registry »

Published

Feb 6, 2010

Category

research

~368 words

Tags

  • cmd 14
  • configuration 8
  • dos 6
  • research 199
  • win 19