I don't think the modification of
path
environment variable is not working.
Would you try it again, more thoroughly. There is one delicate moment some miss. You're running some Shell application like Explorer or CMD.EXE and start other application as a child process. If you updated your
path
environment variable in between, your parent process remains not notified about the change. You need to
re-start it for your modification to be taken into account.
Careful: I don't mean your application using MinGW, I mean some parent process (Shell or console) you use to start your application. Restart it.
Please check it up.
[EDIT]
To run a console application from you code, use
System.Diagnostic.Process.Start
, redirect standard input, output and error streams. See for more information:
Custom Command Line program (Form)[
^], ask a follow-up question if you face a problem.
—SA