miðvikudagur, maí 30, 2007

Launch Elevated Command Prompt in Vista

To add the Open Command Window Here (Administrator) option to the context menu for file system folders, use the following REG file:

[HKEY_CLASSES_ROOT\Directory\shell\runas]@="Open Command Window Here (Administrator)"

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]@="cmd.exe /s /k pushd \"%V\""

To add the entry to Computer (My Computer) context menu, use the following REG file:

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\runas]@="Open Command Prompt (Administrator)"

[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\runas\command]@="cmd.exe"


Copy the above contents to Notepad, and save the file with .REG extension. Then right-click the REG file and choose Merge.

Efnisorð: , , ,

0 Ummæli:

Skrifa ummæli

Gerast áskrifandi að Birta ummæli [Atom]

<< Heim