Hi. We're running PB2019. We're having trouble with the built in PB RUN() function.
In one place, for example, we call out to a C# executable to do some external processing.
ls_command = '"' + is_exe_path +'OurEXE.exe" "parm1" "' + is_request_file + '" "' + is_response_file + '"'
li_rtn = run(ls_command , Minimized!)
li_rtn is coming back as -1. The EXE exists, and if I copy and paste the contents of ls_command into a DOS command box, it executes as expected.
Strangely enough, if I write ls_command into a batch file, everything runs perfectly.
li_file = FileOpen("test.bat", StreamMode!, Write!, LockWrite!, Replace!)
FileWrite(li_file, ls_command)
FileClose(li_file)
li_rtn = run("test.bat", Minimized!)
Does anyone know if Microsoft changed something? Did Appeon change something with the Run() function? Has anyone experienced the same thing?