I am facing an issue with executing a command using shell.Execute()
in Xojo. The command does not run properly, so I tried to execute it through a batch file, hoping that would work.
Here is my batch file:
cd "C:\Users\Bernie\AppData\Roaming\PanScan Parameters\"
C:\PROGRA~1\UVNCBV~1\UltraVNC\VNCVIE~1.EXE -config "uvnc4PanScanPar.vnc"
When I run this batch file directly, it works perfectly. However, when Xojo runs the batch file using shell.Execute("File.BAT")
, it only starts the EXE file, but the additional parameters from the .vnc
file are ignored.
To change the s.ExecuteMode = Shell.ExecuteModes.Synchronous
doesn’t change something.
Do you have any ideas on how to make the batch file run correctly through Xojo?