Ranorex

Setting the woring directory for an Application

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



Joined: 03 Mar 2008
Posts: 2

PostPosted: Mon Mar 03, 2008 2:19 pm    Post subject: Setting the woring directory for an Application
Hi,

I am evaluating Ranorex and I would like to know how can I set the working directory for an Application before it starts, like this:

System.Disgnostics.Process pr = new Process();
pr.StartInfo.WorkingDirectory = path;
pr.StartInfo.Arguments = args;
pr.StartInfo.FileName = exe;
pr.Start();
pr.WaitForInputIdle();

I would like to do something like this but with the Application class and if it is not possible, how can I use the Process class with Ranorex.

Thanks
Back to top
View user's profile Send private message
fdv



Joined: 03 Mar 2008
Posts: 2

PostPosted: Mon Mar 03, 2008 5:34 pm    Post subject:
OK, I got it. I did not understand how does the Application class work. Now, everything is clear to me.

Thanks
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 343

PostPosted: Mon Mar 03, 2008 6:19 pm    Post subject:
Let me just add my two cents:
The preferred way in Ranorex.Net to start an application is to use the System.Diagnostics.Process class as it is much more flexible than the Ranorex.Application.Start method.

The Ranorex.Application.Start is provided for backwards compatibility only and will be marked Obsolete from Ranorex version 1.4 on.

Regards,
Alex
Ranorex Support 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