[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: Re: sys.execute error
- Subject: Re: Re: sys.execute error
- From: John B
- Date: Wed, 07 Jan 2004 16:39:00 +0000
Hi John,
> This is taken from XLProject.org.uk and is the script I'm using:
<snip>
> call sys.execute("notepad.exe")
This is your problem.
You need to pass three parameters to sys.execute.
The original script on xplproject.org.uk that called shutdown looked like
this:
call sys.execute("poweroff.exe","/h 127.0.0.1",False)
The first parameter is the name of the EXE file to run, the second is any
parameters, and the third must be true or false.
If true, the script will wait for the application to close before
continuing -
if false, the script will continue straight away without waiting for the
application.
So, try changing your sys.execute call to something like:
call sys.execute("notepad.exe","",True)
HTH,
John
xPL Main Index |
xPL Thread Index |
xPL Home |
Archives Home
|