I saw some similar questions here, but could not find an answer to my question..
this one almost got it: How to start a 64-bit process from a 32-bit process
But I am missing the explanation regarding how to do it.
I am trying to achieve the following:
P.StartInfo.FileName = "%windir%\\sysnative\\cmd.exe";
but probably doing something wrong - because nothing happens when I Set it this way, but when setting it like this:
P.StartInfo.FileName = "c:\\windows\\sysnative\\cmd.exe";
which I thought is the same - all is working fine. What am I doing wrong?
How can I "tell" the process to resolve the %windir% and not to treat it as is?!
I would just set it as I did in the 2nd example, but I am getting the file name from an outside file which I am not allowed to change, and it is written as %windir%\sysnative\cmd.