Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Launch batch file from the context menu in admin mode

04 Dec 2012   #1

Windows 7 Home Premium (x64) (build 7600) English
Launch batch file from the context menu in admin mode

I found a registry script that creates an option on the windows explorer context menu that allows you to run a batch file.

The program that I use within the batch file is producing an access denied error which I dont get if I run the batch file normally. I wondered if this was something to do with privileges. So is there maybe some way to adjust this regedit script so it runs the command prompt with more privileges?

Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\BackupFolderLocally] @="Backup Folder Locally" [HKEY_CLASSES_ROOT\Directory\shell\BackupFolderLocally\command] @="\"E:\\User\\tools\\BackupFolderLocally.bat\" \"%1\""

My System SpecsSystem Spec

12 Dec 2012   #2

W7 Pro SP1 64bit

Many people have tried this and many people have turned to other tools to get it done. You can try AutoIt or AutoHotkey or KiXtart or....

Instead of calling your batch file via that context menu option, you would call a script. The script can ask for elevated privileges. You can either have the script complete the backup of the folder or have the script start your batch file using elevated privileges.
My System SpecsSystem Spec

 Launch batch file from the context menu in admin mode

Thread Tools

Similar help and support threads for2: Launch batch file from the context menu in admin mode
Thread Forum
Add Quick Launch Bar to Taskbar Context Menu Customization
Solved How to run Batch File as Admin? General Discussion
New Registry File - Add to Context Menu Tutorials
New VBScript File - Add to Context Menu Tutorials
New Batch File - Add to Context Menu Tutorials
Launch all programs in the start menu all at once possibly using batch General Discussion
Solved .inf file context menu General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:22 AM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33