Then VBScript isn't the medium for this task.<BR><BR>Write it as a VB program and schedule that to run. Or, if you want to control it from the web, make it read whether to run or not from a text file. Then have a web page re-write that file to make it run.<BR><BR>Seriously, ASP wasn't designed to work like this. It was designed to execute as quickly as possible and return content to the browser as quickly as possible. It wasn't designed to do these kinds of jobs.<BR><BR>Craig.
You can set the script timeout in IIS or using the Session.ScriptTimeout setting in ASP.<BR><BR>However, I'd be surprised if it'll let you put it up as high as 4 hours if I'm honest.<BR><BR>This will probably take 100% CPU usage on the server, for 4 hours, meaning nothing else will respond (no other pages). Are you SURE there's no other way?<BR><BR>Craig.
You need to use the WSH. (aka a .VBS file) <BR><BR>You can write it the same as an ASP page (well, almost the same) and it will be run by the windows script host rather then IIS, which really can't handle what you're asking for.