Hi,
I want that Ranorex capture the current Solutionfolder and safe it as "newVariable".
for my test i have the specific dataset in that folder.
By starting the programm i want ranorex write the captured path for finding that dataset.
best regards
Metin
Find the Path of the Solutionfolder
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Find the Path of the Solutionfolder
Hi,
As discussed via email.
You could get the path of the project folder using following code snippet:
Regards,
Robert
As discussed via email.
You could get the path of the project folder using following code snippet:
var currDir = System.IO.Directory.GetCurrentDirectory(); var projectPath = System.IO.Directory.GetParent(currDir).Parent.FullName;Afterwards simply store the value to a module variable.
Code: Select all
MyVariable = projectPath;
Robert