I am invoking an exe file (which is essentially a cgi script) with using the .net Process and ProcessInfo classes. I need to be able to set some environment variables before I call Process.Start.
If I was to go the DOS Command line route I would be doing this:
SET UrlString=http://mytest
How does the SET command translate to .Net in the context of using the Process class?
You can use StartInfo property of process object and add variables to EnvironmentVariables dictionary
*update: Be sure to see comment by sixlettervariables (tnx!), and set UseShellExecute to false