run .exe file in another folder with windows form application in C++
I am developing windows form application in C++. I want to run different .exe files from different folders. For example, if the application is in Folder1, I want to run some .exe files from Folder2. I am using some thing like this:
Process^ myProcess1 = gcnew Process;
myProcess1->StartInfo->FileName = OWorkFold开发者_StackOverflow社区er->Text + "\\" + "SSI_SREF.exe";
myProcess1->Start();
but it does not work. When I use this I get: "this application has requested the runtime to terminate it in an unusual way. please contact the application's support team for more information". BTW, when I put my .exe files in the folder which application is, every thing works. does somebody have any idea. I really appreciate it.
Bests, Esmaeel
精彩评论