Last post Oct 15, 2012 02:38 AM by Mark - MSFT
Oct 11, 2012 05:13 AM|emdad|LINK
I have an exe( for example "filecreator.exe") which creates files in the local path. I am launching the exe from my application using Process.Start(). Whenever I place the filecreator.exe in my application path, it creates files smoothly. The problem is
whenever I place the filecreator.exe in different location, it can't create files in its local path. The files are created in my application local path. So whats the problem here? Am I missing something during launching the exe.
I do not want to change the filecreator.exe.
Oct 11, 2012 08:24 AM|emdad|LINK
Yes, I have found the solution.
Need to set the working directory path of the process as--
objProcess.StartInfo.WorkingDirectory=[Pathe of the filecreator.exe].
Now the filecreator.exe creates all files in its local path.
Oct 15, 2012 02:38 AM|Mark - MSFT|LINK
Well done! I'm glad find the solution by yourself and thank you very much for share it. If you have any issue about asp.net in your future programming, you are welcome to post in this forum.