RE: Windows Script Host (WSH)

Date : Thu, 30 Nov 2006 09:32:55 -0000
To : "'XSI(at)Softimage.COM'" <XSI(at)Softimage.COM>
From : Juan Brockhaus <Juan(at)glassworks.co.uk>
Subject : RE: Windows Script Host (WSH)
in xsi you can also use the ' XSIUtils.Environment ' object to get user name and more:
 
var current_username = XSIUtils.Environment.Item("USERNAME");
 
cheers,
 
Juan
 
 
 
-----Original Message-----
From: Robert Moodie [mailto:robertm(at)hybride.com]
Sent: 29 November 2006 22:54
To: XSI(at)Softimage.COM
Subject: Re: Windows Script Host (WSH)

Don't worry - solved:
 

var WshNetwork = new ActiveXObject("WScript.Network");

var CurrentUser = WshNetwork.username;

Logmessage (CurrentUser);

 

 

----- Original Message -----
Sent: Wednesday, November 29, 2006 5:01 PM
Subject: Windows Script Host (WSH)

Does anyone get WSH to work in XSI with Jscript?
 
e.g

var WshNetwork = WScript.CreateObject("WScript.Network");

var CurrentUser = WshNetwork.username;

 

robert moodie
td | Hybride
www.hybride.com


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.