View Single Post
Old 22nd May 2019, 18:42   #16948  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Relying on batch files is a suboptimal solution, in particular on Win 7 because there is trouble with certain types of characters.

The solution is ShellExecuteEx.

Code:
proc.File = "cmd.exe"
proc.Arguments = "/S /C """ + commandLine + """"

Last edited by stax76; 22nd May 2019 at 18:44.
stax76 is offline   Reply With Quote