Jump to content
Sign in to follow this  
Mantris

How to get the username with Windows 98

Recommended Posts

Mantris

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
SmOke_N

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.

Share this post


Link to post
Share on other sites
Mantris

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

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.