I need to run an executable which happens to reside on a 64-bit OS. I am attempting to start the process via the ProcessStartInfo function while passing it the path of the executable, and necessary arguments. This is not working. Has anyone successfully done this?
Dim FILENAME As String = ""
FILENAME = "D://wwwroot//[filename]"
Dim path As String = "////[path_location]"
Dim myProcessStartInfo As New System.Diagnostics.ProcessStartInfo("[program.exe]")
myProcessStartInfo.Arguments = String.Concat(FILENAME, " """, path, """ [args]")
and below code where I pass the command and arguments
Dim p As Process = New Process()
Dim pi As ProcessStartInfo = New ProcessStartInfo()
pi.Arguments = command + " " + arguments
pi.FileName = "cmd.exe"
p.StartInfo = pi