Ranorex

Question about loading an application

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet
View previous topic :: View next topic  
Author Message
dave0989



Joined: 12 Jul 2007
Posts: 3

PostPosted: Thu Jul 12, 2007 5:51 pm    Post subject: Question about loading an application
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
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Thu Jul 12, 2007 9:41 pm    Post subject:
Quote:
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: click into code to enlarge
Application.Start(@"C:\Program Files\Ranorex 1.2\Bin\Net2.0\VS2005Application.exe");

or with an argument (test1.xml):

Code: click into code to enlarge
Application.Start(@"C:\Program Files\Ranorex 1.2\Bin\RanorexRecorder test1.xml");

Jenö
Ranorex Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexNet All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum