Sign in to follow this  
Followers 0
Mantris

How to get the username with Windows 98

4 posts in this topic

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

Share this post


Link to post
Share on other sites



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

[center]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.[/center]

Share this post


Link to post
Share on other sites

@UserName worked fine on Win98 - thank you.

EnvGet("UserName") seems to work only on Windows 2000/XP.

Share this post


Link to post
Share on other sites

@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!

[center]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.[/center]

Share this post


Link to post
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
Sign in to follow this  
Followers 0