Jump to content

Recommended Posts

Posted

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

  • Moderators
Posted

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.

  • Moderators
Posted

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

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
×
×
  • Create New...