"Run as" command for folders

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
 
I

Iceman

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.
 
S

SharkD

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
 
I

Iceman

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
 
S

SharkD

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top