Jump to content

How to get the username with Windows 98


Recommended Posts

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

  • Moderators

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

  • Moderators

@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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...