Hello everyone,
I have a problem with a compiled WBT file that I start in a batch file (xy.cmd) using the "call" command.
Starting it itself is not a problem, only that Windos (7 and higher) then asks whether the exe should be executed beforeexecution....
It is probably a security query (UAC). Is there a way to "build" the EXE to run without prompting?
Script:
FileList = FileItemize(StrCat('C:\yxz\','*.*'))
If FileExist(StrCat( 'C:\yxz\','Application.app')) Then
Display(3, 'Title',StrCat('File "',ApplFile,'" exist',@CrLf,'the machine can start'))
Else
If FileExist(StrCat('C:\yxz\','Application.err')) Then
FileRename(StrCat('C:\yxz\','Application.err'),StrCat('C:\yxz\','Application.app'))
Display(3, 'Title',StrCat('File "',ApplFile,'" rebuild',@CrLf,'restart the System'))
Else
Message('Title','not able to rebuild the file%@CRLF%kontact Abministrator')
EndIf
EndIf
Best regards from good old Swizzerland
Beat
You use manifest settings to adjust how the OS launches your compiled script. More information can be found here:
Compiler Settings (https://docs.winbatch.com/mergedProjects/WinBatch/WINBATCH_S__005.htm)
Keep in mind that setting the manifest to "asInvoker" and "false" restricts the exe to running with standard user privileges.