The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ASP script to control batch file


  • To: ukha_d@xxxxxxx
  • Subject: Re: ASP script to control batch file
  • From: "Graham Howe" <graham@xxxxxxx>
  • Date: Thu, 16 Oct 2003 10:35:33 -0000
  • Mailing-list: list ukha_d@xxxxxxx; contact ukha_d-owner@xxxxxxx
  • Reply-to: ukha_d@xxxxxxx

--- In ukha_d@xxxxxxx, "Dean Barrett" <dean@r...> wrote:
> I'm trying to get a simple ASP script to launch a .bat file on the=20
same
> server - but no joy.
>=20=20
> I've googled and try a few bits i found there, but all to no avail.
>=20=20
> Any ASP guru's here who can help - its a Win2000Pro machine running=20
IIS.
>=20=20
Never actually done it myself, but I may have a go later today. From=20
what I can see, the following should work:

dim wsh
dim cmdline
set wsh =3D Server.createobject("WScript.Shell")

cmdline =3D "c:\tmp\myfile.bat"=20
wsh.run cmdline, 1, false




Home | Main Index | Thread Index

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.