You could use the NT scheduler to do it (type AT /? at a command prompt
for details) and open up a browser to do it.
But, a better way would be to use some sort of HTTP component to do it
instead of opening a browser. The Microsoft.XLMHTTP component will do this
nicely. But, there are many other ways to accomplish this.
' filename: runfile.vbs
' could be modified to use a command line parameter
Dim url 'As String
Dim httpObj 'As Microsoft.XmlHttp
Dim RetVal 'As String
On Error Resume Next
' Page I want to execute
' could be passed in the command line
url = "http://servername/myfile.cfm"
set httpObj = CreateObject("Microsoft.XMLHTTP")
httpObj.Open "GET", url, False, "", ""
httpObj.Send
' your CFM page can output some text or just a number
' that you could use as a return value
RetVal = httpObj.ResponseText
Set HttpObj = Nothing
' END FILE runfile.vbs
hth...
David L. Penton, MCP
Consultant
"Mathematics is music for the mind, and Music is Mathematics for the
Soul. - J.S. Bach"
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Subbarao, Madhu **NWLK
Sent: Friday, January 26, 2001 3:14 PM
Hi Group,
Is there any way I can run a ColdFusion program as a batch/automated
process? We have CF running on a NT4/IIS server and our database is on HP
Unix.
Thanks
Madhu Subbarao
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org