by BaseCamp on Wed Feb 17, 2010 2:20 pm
You are correct, it does not seem to be a permission issue. I've got some C# code which is trying to run the superflexiblesynchronizer.exe and pass the appropriate parameters into it to run a specific profile.
I can see the superflexiblesynchronizer.exe start in my Task Manager so I know that it is being accessed. It seems that either the parameters are not being passed or not being interpreted.
In theory this should work:
System.Diagnostics.ProcessStartInfo psi
= new System.Diagnostics.ProcessStartInfo();
psi.WorkingDirectory = @"C:\Program Files\SuperFlexible";
psi.FileName = @"C:\Program Files\SuperFlexible\SuperFlexibleSynchronizer.exe";
psi.Arguments = "/RUNX=SyncTest";
psi.UseShellExecute = false;
using (Process exeProcess = Process.Start(psi))
{
exeProcess.WaitForExit();
}