It is currently Mon Feb 13, 2012 8:29 pm




 Page 1 of 1 [ 4 posts ] 
Author Message
 Post subject: Windows Explorer Right-Click Commands
PostPosted: Mon Nov 16, 2009 4:28 pm 
Newbie
Newbie

Joined: Mon Nov 16, 2009 4:21 pm
Posts: 3
You know where we can Shift-Right-Cick on a folder and Open a command prompt here? Can anyone come up with Open a command prompt here as administrator? It wouldbe very convenient!


Offline
 Profile  
 
 Post subject: Re: Windows Explorer Right-Click Commands
PostPosted: Mon Nov 16, 2009 10:03 pm 
Site Admin
Site Admin
User avatar

Joined: Mon Feb 09, 2009 1:31 pm
Posts: 193
Location: Newport, South Wales
This will work in Vista, but not sure about 2008, I haven't tried it.

Copy and paste the code into a new file in Notepad, save it as a .reg file then double-click the .reg file. This will add the Open Command Window Here (Administrator) option to the context menu for file system folders.

Windows Registry Editor Version 5.00

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

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


Dave



_________________
Dave Webb
Windows 2008 Forums
Offline
 Profile  
 
 Post subject: Re: Windows Explorer Right-Click Commands
PostPosted: Mon Dec 14, 2009 10:05 am 
Newbie
Newbie

Joined: Mon Nov 16, 2009 4:21 pm
Posts: 3
I found that I was getting erors with:

Windows Registry Editor Version 5.00

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

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

so after extensive research I found that:

Windows Registry Editor Version 5.00

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

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

works in 2008 R2 and probably 2008 as well.


Offline
 Profile  
 
 Post subject: Re: Windows Explorer Right-Click Commands
PostPosted: Wed Dec 16, 2009 6:22 pm 
Site Admin
Site Admin
User avatar

Joined: Mon Feb 09, 2009 1:31 pm
Posts: 193
Location: Newport, South Wales
Good stuff :) Glad you got it working.



_________________
Dave Webb
Windows 2008 Forums
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron