1

I have a program named C:\\AAA\\AAA.exe, and the program is running well. Now if I try to open the .exe file, like this:

Process.Start(@"C:\\AAA\\AAA.exe")

it doesn't work. The problem is, the dependency file from AAA.exe (dependency is an .Lwg file, say, abc.lwg) could not opened.

Can someone tell me how I can do this?

jpaugh
  • 6,634
  • 4
  • 38
  • 90
novian kristianto
  • 751
  • 3
  • 12
  • 34
  • You probably need to set the working directory for the process. See https://msdn.microsoft.com/en-us/library/system.diagnostics.processstartinfo.workingdirectory%28v=vs.110%29.aspx. – Brendan Green Aug 06 '15 at 02:54

1 Answers1

0

Probably you need to set working directory to,

C:\\AAA\\

Assuming .Lwg file lives there

see how to do it.

Community
  • 1
  • 1
Low Flying Pelican
  • 5,974
  • 1
  • 32
  • 43