I wonder if some one came across similar problem.
I need to Run an .exe file to run some tests .
now this .exe file resides in C:\programfiles\ on a 32 bit VM
and C:\program Files (86)\ on a 64 bit VM.
if i record on 32 bit it fails on 64 bit?
how can i record a generic one to run on both or is there any other way ?
You can use Environment.Is64BitOperatingSystem Property
to determine the OS architecture.
path = @"C:\program Files (86)\Custom\Custom.exe";
path = @"C:\program Files\Custom\Custom.exe";
//Start Process - path