Mantris Posted July 3, 2006 Share Posted July 3, 2006 Hi, I want to write a little script that downloads and copies a .dot file into the specified Microsoft folder. In Windows XP everything works fine, but in Win98 there is no way for me to get the username (of the logged in user) out of the environment. Can anybody help, please? Best regards Mantris Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 3, 2006 Moderators Share Posted July 3, 2006 Hi, I want to write a little script that downloads and copies a .dot file into the specified Microsoft folder. In Windows XP everything works fine, but in Win98 there is no way for me to get the username (of the logged in user) out of the environment. Can anybody help, please? Best regards Mantris@UserName doesn't work?Msgbox(64, 'Info', @UserName), I'm not sure if it does or not on 9x Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Mantris Posted July 4, 2006 Author Share Posted July 4, 2006 @UserName worked fine on Win98 - thank you. EnvGet("UserName") seems to work only on Windows 2000/XP. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 4, 2006 Moderators Share Posted July 4, 2006 @UserName worked fine on Win98 - thank you.EnvGet("UserName") seems to work only on Windows 2000/XP.Hey, great info, thanks for letting us know! Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
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