how to get project path during execution : Automation API

how to get project path during execution

Class library usage, coding and language questions.

how to get project path during execution

Postby akommalapati » Mon Jan 09, 2012 6: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
akommalapati
 
Posts: 21
Joined: Wed Dec 07, 2011 3:54 pm
Location: India

Re: how to get project path during execution

Postby Support Team » Mon Jan 09, 2012 8: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
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: how to get project path during execution

Postby sham526 » Mon Jan 09, 2012 2:10 pm

Try the below

Dim dir As String = Directory.GetCurrentDirectory
sham526
 
Posts: 17
Joined: Wed Jul 07, 2010 8:12 am
Location: Hyderabad(INDIA)


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests