Jump to content

Read "SET" vareable


masonje
 Share

Recommended Posts

In dos/windows I can use the SET cmd to define or read variables. We use Netware at our shop and I would like to read the %NWUSERNAME% var, but can't figure out how to get it out. Could be cool if I had a @NWUserName. Ideas on how AutoIT can retrieve that?

Link to comment
Share on other sites

$var = EnvGet("NWUSERNAME")
MsgBox(4096, "NWUsername variable is:", $var)

I wonder if Windows XP even has the NWUsername variable...

Edit: Just checked, I don't have a NWUsername. The same script works on other variables that I do have.

It works if you have the Novell client loaded.

Thanks man!

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