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: [OT] MonitorAdvice


[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: <mrf@xxxxxxx>
  • Date: Thu, 16 Oct 2003 09:45:37 +0100
  • Mailing-list: list ukha_d@xxxxxxx; contact ukha_d-owner@xxxxxxx
  • Reply-to: ukha_d@xxxxxxx

This should do the trick, you MUST make sure the permissions are set
correctly though, or it won't work.

<%@ Language=3DVBScript %>
<%
Set objShell =3D Server.CreateObject("WScript.Shell")
objShell.Run("C:\TEST.BAT")
Set objShell =3D Nothing
%>

The chances are, if it doesn't work, it's due to permission for IIS or file
access.

Cheers
Marc
-----Original Message-----
From: Dean Barrett [mailto:dean@xxxxxxx]
Sent: 16 October 2003 08:52
To: ukha_d@xxxxxxx
Subject: [ukha_d] ASP script to control batch file


I'm trying to get a simple ASP script to launch a .bat file on the same
server - but no joy.

I've googled and try a few bits i found there, but all to no avail.

Any ASP guru's here who can help - its a Win2000Pro machine running IIS.



Thanks



Dean.



[Non-text portions of this message have been removed]



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.