The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: Re: Easiest way to execute a .cmd via IIS (remotely with a web browser)


[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

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.