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.
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.