Sign in to follow this  
Followers 0
masonje

Read "SET" vareable

3 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Edited by Manadar

Share this post


Link to post
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!

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