Like title says I’m tryin to launch a bat file with the following code:
[VarSet,appPath,“C:\Windows\System32\cmd.exe”]
//full path to the file to open
[VarSet,fullFilePath,[FileNameResolvePath,“helloWorld.bat”]]
//create memblock for app path
[MemCreate,ZFileUTils_AppPath, 256, 0]
//write app path to memblock
[MemWriteString,ZFileUTils_AppPath,appPath,0]
[VarSet,err,[FileExecute,[Var,dllPath],“LaunchAppWithFile”,#fullFilePath,ZFileUTils_AppPath]]
//delete the memblock as we’ve done with it
[MemDelete,ZFileUTils_AppPath]
//an error
[If,err,[Note,“An error occurred.”,2]]
I can get it to work with opening it with notepad but I cant get it to execute with cmd. Is there any other way of doing it?
Thanks!