RE: Scripting: XSIUtils.LaunchProcess

Date : Thu, 20 Apr 2006 16:56:03 +0100
To : <XSI(at)Softimage.COM>
From : "Nikos Gatos" <nikos(at)passion-pictures.com>
Subject : RE: Scripting: XSIUtils.LaunchProcess

Thanks guys,

 

That works fine! J

 

 

// Nikos

Passion Pictures

 


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Stephen Blair
Sent: 20 April 2006 15:51
To: XSI(at)Softimage.COM
Subject: RE: Scripting: XSIUtils.LaunchProcess

 

You will have to do something like

XSIUtils.LaunchProcess( "cmd /C start C:\\test.bat" );

 

LaunchProcess is like the Win32 CreateProcess() api. You have to start a command interpreter session to run your batch file.

 


From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf Of Nikos Gatos
Sent: April 20, 2006 9:27 AM
To: XSI(at)Softimage.COM
Subject: Scripting: XSIUtils.LaunchProcess

Hi,

I cannot seem to get this function to work on a DOS .bat file.

 

Anyone know what I’m doing wrong?

 

XSIUtils.LaunchProcess( "c:\\test.bat” );

 

Test.bat is in my C root and contains only:

 

echo "test"

pause

 

Oh, the old system command works just fine:

system( "c:\\test.bat” );

 

 

We’re still running Win2000

 

Thanks,

Nikos


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.