Error in Process.Start
-
Hi, In my web application, I am executing an exe file using process.Start I have 2 exe files in a directory. 1.First exe file is a stand alone one. 2.Second exe file will refer to another file(file2.ctf) in the same directory. If I try to execute the first file, it is working fine. But, for the second file , it says error message like: Make sure the directory containing file2.ctf is on your dynamic load library path(PATH on Windows,or LD_LIBRARY_PATH on Linux). I think the exe file is not able to find the file2.ctr file. Even after changing the environment variable PATH , it is throwing the same message. But it is working fine in WindowsApplication. Any help would be appreciated.
Regards, Arun Kumar.A
-
Hi, In my web application, I am executing an exe file using process.Start I have 2 exe files in a directory. 1.First exe file is a stand alone one. 2.Second exe file will refer to another file(file2.ctf) in the same directory. If I try to execute the first file, it is working fine. But, for the second file , it says error message like: Make sure the directory containing file2.ctf is on your dynamic load library path(PATH on Windows,or LD_LIBRARY_PATH on Linux). I think the exe file is not able to find the file2.ctr file. Even after changing the environment variable PATH , it is throwing the same message. But it is working fine in WindowsApplication. Any help would be appreciated.
Regards, Arun Kumar.A
-
You might need to change some info in your StartInfo object that is associated with the Process object. There is a property called WorkingDirectory off the StartInfo object. Set that to the correct directory and it should work. Hope that helps. Ben
Thank U very much. I will try and let U know.
Regards, Arun Kumar.A
-
You might need to change some info in your StartInfo object that is associated with the Process object. There is a property called WorkingDirectory off the StartInfo object. Set that to the correct directory and it should work. Hope that helps. Ben
Thank U very much. It is working fine now.
Regards, Arun Kumar.A