Get path project

I want to get path project

Now I use IO.Directory.GetCurrentDirectory
output = C:\RPA\RPA1\Sourcecode

If I want output = C:\RPA\RPA1

remark not hardcode delete Sourcecode

Please guide me for solve it.

Thank you

Hi,

Can you try the following expression?

System.IO.Path.GetDirectoryName(System.IO.Directory.GetCurrentDirectory)

Regards,

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.