Page 1 of 1

how to get project path during execution

Posted: Mon Jan 09, 2012 5:25 am
by akommalapati
Hi,

I have requirement of getting the location of the project in my machine during execution, can u please give me code snippet for getting the same.

Thanks
Ajay

Re: how to get project path during execution

Posted: Mon Jan 09, 2012 7:51 am
by Support Team
Hi,

Due to Ranorex is generating the code to C# or VB.NET in a full .NET environment, try to find the C# or VB.NET code for your issue.

[*]Google for your issue, e.g. google get location of executed program .net
[*]take your answer, get application direcotry c#

Regards,
Martin
Ranorex Support Team

Re: how to get project path during execution

Posted: Mon Jan 09, 2012 1:10 pm
by sham526
Try the below

Dim dir As String = Directory.GetCurrentDirectory