Is there a way to refer to the currently logged on user to use for scanning and collections?
For example if the currently logged on user is Tom.Smith, then can I have that as $CurrentLoggedOnUser so I can do a file scan for:
C:\Users\$CurrentLoggedonUser\Documents\File.csv to make sure I can check if File.csv exists for Tom.Smith's user folder path?
I am banking on the currently logged in user to be relevant to whether active users have the file I need. But I don't want to assume the active user has the file just because "File.csv" was found in some other user's profile folder under c:\users.
Please sign in to leave a comment.