Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I scheduled this action on Task Manager on Server 2008:

Start a program C:\Program Files\Internet Explorer\iexplore.exe" "D:\Inetpub\pathToMy\script.asp"

When the task runs, IE opens quickly and closes, leaving behind a "Do you want to open or save this file? script.asp"

How can I run this classic ASP script?

share|improve this question
1  
I don't know the answer off hand, but my guess is you're going to want to Google command line asp –  Kyle Buser Oct 18 '10 at 17:49
    
thanks for looking, kyle. i provided an answer below--i figured out how to do this by renaming the .asp file to .vbs. –  rg89 Oct 18 '10 at 18:09

2 Answers 2

I solved this problem myself. Here's what to do:

  1. rename your .asp script to .vbs
  2. remove asp script start and end tags
  3. remove all references to the response and request objects
  4. change references to the server object to the wscript object
  5. schedule your task action as the .vbs file

Details: http://support.microsoft.com/?kbid=188135

share|improve this answer

I think you'll either want to Google command line asp: http://classicasp.aspfaq.com/general/how-do-i-execute-a-dos-command/batch-file/exe-from-asp.html

Or run the location from localhost: ie, http://localhost/script.asp

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.