A
A
Alexander Volkov2016-03-04 15:16:44
C++ / C#
Alexander Volkov, 2016-03-04 15:16:44

Executable files are not launched correctly using the Process class. What is the problem?

There is a problem when running some .exe files that load external data (for example, pictures). In such .exe files for pictures, links are written and they are in the folder with the .exe file. But when launched from a C# program using the Process class, such .exe files give an error that the paths to the files were not found, or it does not load these files at all.
An internet search, unfortunately, turned up nothing.
Thanks in advance for your replies.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Eremin, 2016-03-04
@AlexanderAm

(1) In the error message that the paths are not set, is the path that you tried to get the pictures written in? Does it match what you need?
(2) What are the values ​​of
yourProcess.ProcessStartInfo.WorkingDirectory and yourProcess.ProcessStartInfo.UseShellExecute?
(3) Well, if possible, how do you set the paths?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question