AmericanCheese Posted March 10, 2016 Posted March 10, 2016 (edited) 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 March 10, 2016 by AmericanCheese
InunoTaishou Posted March 10, 2016 Posted March 10, 2016 (edited) 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 March 10, 2016 by InunoTaishou
AmericanCheese Posted March 10, 2016 Author Posted March 10, 2016 3 minutes ago, InunoTaishou said: MsgBox("", "Username", @UserName) Follow up question, how do I send myself an email?
InunoTaishou Posted March 10, 2016 Posted March 10, 2016 There are a few ways to approach this. This search will bring up what you want. I've done this before and just used this one by Jos using an email I made on gmail just to email my personal email address.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now