Hi. I’m trying to find a file that I previously saved. I need to know the exact path to store as a string to attach it to an email message, and this has to be generic when this is deployed onto another person’s computer. I found in the documentation that the Desktop path is \Users\UserName\Desktop\, but how do you write this in general for the UserName? I am able to access the folder when UserName = Ryan, but that won’t be the case for xxx user.
Get the path from SpecialFolder.Desktop.
That did the trick! Thanks Kem!