Question about loading an application

Class library usage, coding and language questions.
dave0989
Posts: 3
Joined: Thu Jul 12, 2007 4:45 pm

Question about loading an application

Post by dave0989 » Thu Jul 12, 2007 4:51 pm

Hiya,

I do software validation for my employer and right now I'm checking out different products we can use to automate our GUI testing. The question I have is regarding the start() method.

I know from the example that I can write the following:

application.start("calc.exe");

The question I have about this method is how do I point it to a specific location to grab an exe file from the program files location on my C drive?

When I put the application name into the start method nothing comes up.

Thanks

Dave

webops
Site Admin
Site Admin
Posts: 349
Joined: Wed Jul 05, 2006 7:44 pm

Post by webops » Thu Jul 12, 2007 8:41 pm

The question I have about this method is how do I point it to a specific location to grab an exe file from the program files location on my C drive?
You can start an executable in the "Program Files" directory as follows:

Code: Select all

Application.Start(@"C:\Program Files\Ranorex 1.2\Bin\Net2.0\VS2005Application.exe");
or with an argument (test1.xml):

Code: Select all

Application.Start(@"C:\Program Files\Ranorex 1.2\Bin\RanorexRecorder test1.xml");
Jenö
Ranorex Team