masonje Posted November 14, 2006 Posted November 14, 2006 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?
jvanegmond Posted November 14, 2006 Posted November 14, 2006 (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 November 14, 2006 by Manadar github.com/jvanegmond
masonje Posted November 14, 2006 Author Posted November 14, 2006 $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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now