  | | | Hostname from script | Hostname from script 2004-05-12 - By Alain Laferrière
Back Hi Kim,
var wsh = new ActiveXObject("wscript.network") var user = wsh.username var host = wsh.computername logmessage( "username : " + user ); logmessage( "host : " + host );
Alain
__ __
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of kim aldis Sent: Wednesday, May 12, 2004 7:19 PM To: XSI@(protected) Subject: Hostname from script I know this has been asked before but has anyone got a quick and easy method for getting hostname in a jscript script? cheers,
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2737.800" name=GENERATOR></HEAD> <BODY> <DIV dir=ltr align=left><FONT face=Arial color=#000080 size=2><SPAN class=611260111-12052004>Hi Kim,</SPAN></FONT></DIV> <DIV dir=ltr align=left> <P><FONT size=2>var wsh = new ActiveXObject("wscript.network")<BR>var user = wsh.username<BR>var host = wsh.computername<BR>logmessage( "username : " + user );<BR>logmessage( "host : " + host );</FONT></P></DIV> <DIV><SPAN class=611260111-12052004><FONT face=Arial color=#000080 size=2>Alain</FONT></SPAN></DIV> <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> owner-xsi@(protected) [mailto:owner-xsi@(protected)] <B>On Behalf Of </B>kim aldis<BR><B>Sent:</B > Wednesday, May 12, 2004 7:19 PM<BR><B>To:</B> XSI@(protected)<BR><B>Subject:</B> Hostname from script<BR></FONT><BR></DIV> <DIV></DIV> <DIV><SPAN class=734381810-12052004><FONT face=Arial size=2>I know this has been asked before but has anyone got a quick and easy method for getting hostname in a jscript script?</FONT></SPAN></DIV> <DIV><SPAN class=734381810-12052004><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=734381810-12052004><FONT face=Arial size=2>cheers,</FONT></SPAN></DIV></BLOCKQUOTE></BODY></HTML>
|
|
 |