Help needed in PC name


My default download path is : "C:\Users\shrayud\Downloads"

Now If another person(x_usename) runs the robot the pathname will get changed to : "C:\Users\x_usename\Downloads".

Now I want to get this username dynamically from the system. Please guide me. One idea I have is using Power shell, but have no knowledge to execute it. Please help.

Hi @shrayud

You can execute ur powershell script using Uipath

There is an activity for this in Uipath called invoke powershell activitiy

Check that out


Nived N :robot:

Happy Automation :relaxed::relaxed::relaxed:

1 Like

I would recommend utilizing the built-in environment variables.


You can use this in an assign to concatenate with the rest of the path.


Thanks Aaron. No need for concatenation

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