"Run as" command for folders

  • Thread starter Thread starter SharkD
  • Start date Start date
S

SharkD

Is there a way to add the "Run as..." command to the context menu of
folders? I know it is visible by default for executables, and I've
successfully added it to other file types; but folders still elude me.

Thanks!

-Mike
 
Is there a way to add the "Run as..." command to the context menu of
folders? I know it is visible by default for executables, and I've
successfully added it to other file types; but folders still elude me.

Thanks!

-Mike

This page shows how to add a .bat file to the context menu. Replace that
with "Run as".

http://help.lockergnome.com/windows2/add-item-context-menu-folders--ftopict477246.html

Shorter link: http://tinyurl.com/ccks9l

Remember to back up your Registry before making any changes.
 
This page shows how to add a .bat file to the context menu. Replace that
with "Run as".

http://help.lockergnome.com/windows2/add-item-context-menu-folders--f...

Shorter link:http://tinyurl.com/ccks9l

Remember to back up your Registry before making any changes.

Thanks for the help.

I've added the following lines to the registry:

[HKEY_CLASSES_ROOT\Folder\shell\runas]

[HKEY_CLASSES_ROOT\Folder\shell\runas\command]
@="\"%1\" %*"

The context menu item appears correctly, and the username/password
prompt is triggered; however, after inserting my user name and
password I get an error:

"Windows cannot access the specified device, path, or file. You may
not have the appropriate permissions to access the item."

Any tips?

Thanks!

-Mike
 
Thanks for the help.

I've added the following lines to the registry:

[HKEY_CLASSES_ROOT\Folder\shell\runas]

[HKEY_CLASSES_ROOT\Folder\shell\runas\command]
@="\"%1\" %*"

The context menu item appears correctly, and the username/password
prompt is triggered; however, after inserting my user name and
password I get an error:

"Windows cannot access the specified device, path, or file. You may
not have the appropriate permissions to access the item."

Any tips?

If you're trying to run the folder as an executable, there may be a
restriction in place in WinXP SP2. To unblock it, right-click on the
executable and choose 'Properties' and look to the bottom of the 'General'
tab. Here you should find an 'Unblock' button provided to allow normal
access to the executable.

But also see this page:

""Access is Denied" error message when you try to open a folder"
http://support.microsoft.com/kb/810881
 
If you're trying to run the folder as an executable, there may be a
restriction in place in WinXP SP2. To unblock it, right-click on the
executable and choose 'Properties' and look to the bottom of the 'General'
tab. Here you should find an 'Unblock' button provided to allow normal
access to the executable.

But also see this page:

""Access is Denied" error message when you try to open a folder"http://support.microsoft.com/kb/810881

It would be fine if it loaded Explorer instead of treating the folder
as an executable.

-Mike
 
Back
Top