three_sixteen
Gawd
- Joined
- Feb 15, 2002
- Messages
- 1,003
Hey guys,
I'm trying to figure out a way to query the username from the windows environment variable so I can do some SQL queries with it, but my JavaScript is no good.
I'm not sure what I need to do to get it?
Something along those lines?
I'm trying to figure out a way to query the username from the windows environment variable so I can do some SQL queries with it, but my JavaScript is no good.
I'm not sure what I need to do to get it?
Code:
var System=Script.CreateObject("WScript.Shell").Environment("SYSTEM");
alert(System("username"));
Something along those lines?