I have two applications running on W2k8 R2 x64, one is compiled as 64bit and the other one as 32bit as it has COM dependencies.
In both I’m trying to call:
Process p = Process.Start("telnet.exe", string.Format("{0} {1}", address, port));
In the x64 it works perfectly fine, however in the 32bit one I get a System.ComponentModel.Win32Exception (“The system cannot find the file specified”)?
Any idea what’s going on here? Even if I call
Process.Start(@"C:\Windows\System32\telnet.exe")
I get the same exception?
Thanks,
Tom
To launch a system32 located 64bit app from a 32bit app (at least on Vista,2k8,7, doesn’t work on x64 XP or 2k3) run it from the sysnative directory, i.e. “C:\windows\sysnative\telnet.exe” (alternatively disable Wow64 but that is generally a bad idea).