Having a meaningful command prompt can be incredibly helpful when working on several machines, remote computers, and using different credentials. So I use the following command prompt on all of my machines… this allows me to easily know who and how I connected to a remote share when I’m using the command line interface (cli).

My Custom Command Prompt 


You can create your own using the syntax defined here and make it always the use your prompt be defining an autorun command or script for your command prompt for any user who uses this computer or for the current user only by replacing HKEY_LOCAL_MACHINE with HKEY_CURRENT_USER:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor]
"AutoRun"="prompt %userdomain%\\%username%$son$s%COMPUTERNAME%$s@$s$t$_[$p]$s$m$_$g$s"

You can save the text above into a text file and save it with the .reg extension and then you can apply it by double clicking on the file.

del.icio.us Tags: ,, |
Technorati Tags: ,,
Cross Posted from http://brianreisman.com/