masonje Posted November 14, 2006 Share 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? Link to comment Share on other sites More sharing options...
jvanegmond Posted November 14, 2006 Share 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 Link to comment Share on other sites More sharing options...
masonje Posted November 14, 2006 Author Share 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! Link to comment Share on other sites More sharing options...
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