Requested Operation Requires Elevation
FILEMENU ISSUES
Question:
I am trying to right-click on a .wbt file in Windows Explorer and select the 'Run with WinBatch',
'WinBatch Studio' or 'WinBatch Compiler' menu item I get an error. I am getting the error
1932: Winexec Function Failed. When I push the 'Additional Error' button on the
error dialog it says 'Requested Operation Requires Elevation.'. How do I fix this?
OS Version: Windows Vista 32 Bit
WinBatch Version: 2007C
Answer:
You need some way to tell the FileMenu utility to launch those applications with elevation. We have found
that using ShellExecute with the RunAs string can accomplish this.
- Open WinBatch Studio.
- Select 'File | Open', and open the file '..\WinBatch\System\FileMenu For WinBatch files.mnw'
- Change Each of the Run statements to ShellExecute Statements.
- Save the changes.
- Right-click on a .wbt file in Windows Explorer and select the 'WinBatch Studio' menu item.
Sample of Changes to the file '..\WinBatch\System\FileMenu For WinBatch files.mnw':
; Menu file for wbt extension
;AMAZINGLY IMPORTANT NOTICE!!
;This file is automatically overwritten during upgrade
;or re-install of the WinBatch product. If you make
;changes to it...SAVE YOUR BACKUPS...This file will
;be overwritten without notice.
Run with WinBatch ; Runs the Winbatch Interpreter on this file
f = strcat('"',CurrFilePath(),'"')
;Run("winbatch.exe",f)
ShellExecute("winbatch.exe", f, "", @NORMAL, "")
WinBatch Studio ; Edit the Winbatch file
a = FileItemPath ( "" )
fc = ItemCount ( a , @tab )
for j = 1 to fc
file = ItemExtract ( j , a , @tab )
fwquotes = strcat('"',file,'"')
;Run("WinBatch Studio.exe" , fwquotes )
ShellExecute( "WinBatch Studio.exe" , fwquotes, "", @NORMAL, "")
next
WinBatch Compiler ;Run the WinBatch Compiler
f=strcat('"',CurrFilePath(),'"')
;Run("WBCompiler.exe",f)
ShellExecute("WBCompiler.exe", f, "", @NORMAL, "")
POPMENU ISSUES
Question:
I am trying to right-click on Popmenu in the System Tray and I get an error. I am getting the error
1932: Winexec Function Failed. When I push the 'Additional Error' button on the
error dialog it says 'Requested Operation Requires Elevation.'. How do I fix this?
OS Version: Windows Vista 32 Bit
WinBatch Version: 2007C
Answer:
You need some way to tell the Popmenu utility to launch those applications with elevation. We have found
that using ShellExecute in place of run can accomplish this. Currently the file that is getting
launched is PopmenuStartup.exe. That means you currently have no way to modify the file yourself.
We will be updating this file in our next release of WinBatch 2007D. In the meanwhile contact Tech
support for an updated copy.
Article ID: W17489
File Created: 2008:04:10:15:11:32
Last Updated: 2008:04:10:15:11:32