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:45:20 -0000
  • Mailing-list: list ukha_d@xxxxxxx; contact ukha_d-owner@xxxxxxx
  • Reply-to: ukha_d@xxxxxxx

--- In ukha_d@xxxxxxx, "Graham Howe" <graham@s...> wrote:
> Never actually done it myself, but I may have a go later today.=20
From=20
> what I can see, the following should work:
>=20
> dim wsh
> dim cmdline
> set wsh =3D Server.createobject("WScript.Shell")
>=20
> cmdline =3D "c:\tmp\myfile.bat"=20
> wsh.run cmdline, 1, false

Oops sorry, didn't see Marc's response or your subsequent message. My=20
solution is effectively the same, and I would agree that if you have=20
tried it and it fails then it is probably an authorisation issue.=20
Unless you have specified otherwise, the 'user' trying to run this=20
batch file will be the default web user on your server, the username=20
should be IUSR_SERVERNAME where SERVERNAME is of course the name of=20
the server. You need to ensure that this user has execute permission=20
on the folder and file.



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.