How to Refer to "Downloads" instead of C:\Users\Account\Downloads

Hello guys,

Quick question.
I want to move the latest file in downloads to another folder. Te problem im facing right now is that it is not defined which account we are using. So I dont want to refer to the path as stated in the title. But I want to refer to “downloads”.

How can I do this? Ive added a screenshot for further clarification.

Only when workflow file i.e xmal is present in that folder then only it will take as only
“Downloads”
Otherwise u need to give full path

1 Like

is there a way to quickly/efficiently get the account name of the account the robot is working on?

edit:
system.Environment.UserName

you can get the current user name using “System.Security.Principal.WindowsIdentity.GetCurrent().Name” and then you can using this string value for your next steps.