I have an application which takes a string value of the form %programfiles%\directory\tool.exe from its application config file.
I want to make this into a useable filename so that I can call
System.Diagnostics.Process.Start(filename)
and have it execute the application. I'm curently getting a System.ComponentModel.Win32Exception - The system cannot find the file specified
Many thanks for any help with this.
filename = Environment.ExpandEnvironmentVariables(filename);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With