Re: [script] Equivalent of os.system() in JScript?

Date : Tue, 6 Feb 2007 21:47:46 -0500
To : XSI(at)Softimage.COM
From : "Bernard Lebel" <3dbernard(at)gmail.com>
Subject : Re: [script] Equivalent of os.system() in JScript?
Thanks Matt. I wanted to do that from a webpage.

The WSH object seem to be the way to go, it works. But it's painful!
In this case it was the sound recorder.


var oShell = new ActiveXObject( "WScript.Shell" ); oShell.Exec( "<path to executable> /option /option <file to execute>" );


If anyone has better tips on how to play sounds from a webpage, I'm all ears!


Cheers Bernard



On 2/6/07, Matt Lind <speye_21(at)hotmail.com> wrote:
>How do you perform system calls in JScript? A bit like Python's os.system()

If you're inside of XSI, use the System() command (see scripting reference).
  If you're outside of XSI, don't quote me as I haven't checked in a while,
but I believe the Windows Script Host has a System call buried somewhere in
there somewhere.  Wsh.System() ?  Check the shell or network objects.


Matt

------------------------------
Matt Lind
Animator / Technical Director
SOFTIMAGE certified instructor:
   SOFTIMAGE|3D
   SOFTIMAGE|XSI
Matt.Lind(at)Mantom(dot)net

_________________________________________________________________
Search for grocery stores. Find gratitude. Turn a simple search into
something more.
http://click4thecause.live.com/search/charity/default.aspx?source=hmemtagline_gratitude&FORM=WLMTAG

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


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.