User Tools

Site Tools


microsoft:desktop:win_8:adm_cmd_anywhere

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
microsoft:desktop:win_8:adm_cmd_anywhere [2013/04/19 19:58] – external edit 127.0.0.1microsoft:desktop:win_8:adm_cmd_anywhere [2016/11/05 10:37] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Open an Administrator Command Prompt Anywhere in File Explorer ====== ====== Open an Administrator Command Prompt Anywhere in File Explorer ======
- 
  
 A command-line hack lets you add a right-click option to File Explorer called //Open Administrator Command Prompt Here//. That way, you can simply right click in the folder in which you want to open an administrator prompt. A command-line hack lets you add a right-click option to File Explorer called //Open Administrator Command Prompt Here//. That way, you can simply right click in the folder in which you want to open an administrator prompt.
Line 8: Line 7:
 2. In that new key, create a new string value called ''NoWorkingDirectory''. Leave the value data field blank. Now create a new key into ''HKEY_CLASSES_ROOT\Directory\shell\runas'', called ''command''. Double-click the key's default value, enter the following text, and click OK: 2. In that new key, create a new string value called ''NoWorkingDirectory''. Leave the value data field blank. Now create a new key into ''HKEY_CLASSES_ROOT\Directory\shell\runas'', called ''command''. Double-click the key's default value, enter the following text, and click OK:
  
-''cmd.exe /k "pushd %L && title Command Prompt"''+  cmd.exe /k "pushd %L && title Command Prompt"
  
 3. Go to ''HKEY_CLASSES_ROOT\Drive\shell'' and create a new key called ''runas''. After you create the key, double-click the Default String, and give it the value ''Open Administrator Command Prompt Here''. 3. Go to ''HKEY_CLASSES_ROOT\Drive\shell'' and create a new key called ''runas''. After you create the key, double-click the Default String, and give it the value ''Open Administrator Command Prompt Here''.
Line 14: Line 13:
 4. In that new key, create a new string value called ''NoWorkingDirectory''. Leave the value data field blank. Now create a new key into ''HKEY_CLASSES_ROOT\Drive\shell\runas'', called ''command''. Double-click the key's default value, enter the following text, and click OK: 4. In that new key, create a new string value called ''NoWorkingDirectory''. Leave the value data field blank. Now create a new key into ''HKEY_CLASSES_ROOT\Drive\shell\runas'', called ''command''. Double-click the key's default value, enter the following text, and click OK:
  
-''cmd.exe /k "pushd %L && title Command Prompt"'' +  cmd.exe /k "pushd %L && title Command Prompt"  
- +
- +
  
 You can create a //.reg// file that automatically creates all Registry entries for you: You can create a //.reg// file that automatically creates all Registry entries for you:
  
- +  Windows Registry Editor Version 5.00   
-''Windows Registry Editor Version 5.00'' +   
- +  [HKEY_CLASSES_ROOT\Directory\shell\runas]   
-''[HKEY_CLASSES_ROOT\Directory\shell\runas]'' +  @="Open Administrator Command Prompt Here"   
- +  "NoWorkingDirectory"=_ckgedit_QUOT__ckgedit>   
-''@="Open Administrator Command Prompt Here"'' +  [HKEY_CLASSES_ROOT\Directory\shell\runas\command]    
- +  @="cmd.exe /k \"pushd %L && title Command Prompt\_ckgedit_QUOT__ckgedit>   
-''"NoWorkingDirectory"=""'' +  [HKEY_CLASSES_ROOT\Drive\shell\runas]   
- +  @="Open Administrator Command Prompt Here"   
-''[HKEY_CLASSES_ROOT\Directory\shell\runas\command]'' +  "NoWorkingDirectory"=_ckgedit_QUOT__ckgedit>    
- +  [HKEY_CLASSES_ROOT\Drive\shell\runas\command]    
-''@="cmd.exe /k \"pushd %L && title Command Prompt\""'' +  @="cmd.exe /k \"pushd %L && title Command Prompt\_ckgedit_QUOT__ckgedit>  
- +
-''[HKEY_CLASSES_ROOT\Drive\shell\runas]'' +
- +
-''@="Open Administrator Command Prompt Here"'' +
- +
-''"NoWorkingDirectory"=""'' +
- +
-''[HKEY_CLASSES_ROOT\Drive\shell\runas\command]'' +
- +
-''@="cmd.exe /k \"pushd %L && title Command Prompt\""''+
  
  
 Give the file a name with the extension //.reg// such as //command prompt.reg// , double-click it, and the changes will be applied to the Registry. Give the file a name with the extension //.reg// such as //command prompt.reg// , double-click it, and the changes will be applied to the Registry.
microsoft/desktop/win_8/adm_cmd_anywhere.1366401498.txt.gz · Last modified: 2016/11/05 10:18 (external edit)