Jump to content

Find Current user?


Recommended Posts

I need a way to get the current user and store it as a global variable. 

 

So they run it, and it will store the username "C: etc etc"

Also need it to be emailed to me, how to do that aswell??

Any idea's / example scripts?

Edited by AmericanCheese
Link to comment
Share on other sites

MsgBox("", "Username", @UserName)

There are also a few other macros for saved paths.

MsgBox("", "Current User Start Menu Programs Directory", @ProgramsDir)
MsgBox("", "Current User Favorites Directory", @FavoritesDir)
MsgBox("", "Current User App Data Directory", @AppDataDir)
MsgBox("", "Current User Dekstop Directory", @DesktopDir)
MsgBox("", "Current User Profile Directory", @UserProfileDir)

 

Edited by InunoTaishou
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...