M
MAF
I need to find a way to run a vbs on the same thread that I am currently on.
Here is the code I have now and this causes the scripts to be run out of
order. I want to have the application wait until the process is finished
before executing the next script.
Process scriptConsoleProcess;
scriptConsoleProcess = new Process();
scriptConsoleProcess.StartInfo.FileName = scriptPath;
scriptConsoleProcess.StartInfo.UseShellExecute = true;
scriptConsoleProcess.StartInfo.CreateNoWindow = true;
scriptConsoleProcess.Start();
Here is the code I have now and this causes the scripts to be run out of
order. I want to have the application wait until the process is finished
before executing the next script.
Process scriptConsoleProcess;
scriptConsoleProcess = new Process();
scriptConsoleProcess.StartInfo.FileName = scriptPath;
scriptConsoleProcess.StartInfo.UseShellExecute = true;
scriptConsoleProcess.StartInfo.CreateNoWindow = true;
scriptConsoleProcess.Start();