I read other answers to this, but cannot work mine. maybe because of the difference. The difference is that my hex file are on an external device and here is the hierarchy
/home/root/myfolder/General
and the EXE that I want to execute
/TestLiberatus_Stress.exe
so here is what I have up to now
string ex1 = "/home/root/myfolder/Functional/TestLiberatus_Stress.exe";
// Use ProcessStartInfo class
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.CreateNoWindow = false;
startInfo.UseShellExecute = false;
startInfo.FileName = ex1;
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.Arguments = "";
try
{
// Start the process with the info we specified.
// Call WaitForExit and then the using statement will close.
using (Process exeProcess = Process.Start(startInfo))
{
exeProcess.WaitForExit();
}
}
catch
{
int x = 0; //just to know it enters for now
}
From the other explanations that I've found, it should work... So, where is the problem?
Also once this work, what I'd like to do intead of giving the full path would be to just go up one level and go in stress. The executing EXE will be in the path I've given, the full path, and the other one to execute will be in
/home/root/myfolder/Functional