Question related to Process.Start method.....

Posted by Hmanjarawala under C# on 2/12/2012 | Points: 10 | Views : 1003 | Status : [Member] | Replies : 2
Hi,
I've developed application which target Windows 32-bit OS plateform.
from that application i initiate process that starts calculater application from path "C:\Windows\System32\calc.exe"
kindly note that for my application process running path is crutial.
this application works fine with 32-bit Os.
but when i start it on windows server 2008.
it runs calculater application from "C:\Windows\SysWOW64" path instead of path mentioned above.
now what exact behaviour i want that application shoulb run from same path give by me as input.

Hope u all can understand what my question is?
so plz reply me asap.....

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/



Responses

Posted by: Nishantcomp2512 on: 2/13/2012 [Member] Starter | Points: 25

Up
0
Down
you have write a whole path which is good but if you write just

Process.start("calc.exe");
then the calculator will automatic starten with out depending on path.

Hmanjarawala, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Hmanjarawala on: 2/14/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi nishant,
but as i already stated.....path does matter here...so icouldn't do what u say...

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Hmanjarawala, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response