how to get project path during execution

Class library usage, coding and language questions.
akommalapati
Posts: 21
Joined: Wed Dec 07, 2011 2:54 pm
Location: India

how to get project path during execution

Post by akommalapati » Mon Jan 09, 2012 5:25 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: how to get project path during execution

Post by Support Team » Mon Jan 09, 2012 7:51 am

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

sham526
Posts: 34
Joined: Wed Jul 07, 2010 7:12 am
Location: Hyderabad(INDIA)

Re: how to get project path during execution

Post by sham526 » Mon Jan 09, 2012 1:10 pm

Try the below

Dim dir As String = Directory.GetCurrentDirectory