I think he has the .bat file, I think he needs a way to fire it....if that is the case, use the "Schedule" sevice in NT. Use the AT command at the command prompt to verify the schedule is triggered. You need to add a couple of things to the bat file in that case. I Always put a minute between stop and start because most times NT chokes on too quick a restart(iis especially).
Here is some code: This one stops iis, waits 10 seconds, then starts it back up. You need to put choice.exe(from dos or win 9x) in the root of 'c' on NT -------------------------------------------
net stop "w3svc"
choice /cb /t:b,10 /n > nul
net start "w3svc"
------------------------------------------
This one works with the scheduler. I use it for CF. Start the Scheduler SVC, then fire this bat. Once you do, use the AT command to verify it is triggered to fire.
-------------@ECHO ON
at 02:00 /every:M,T,W,Th,F,S,Su net stop "Cold Fusion Executive" at 02:01 /every:M,T,W,Th,F,S,Su net stop "Cold Fusion RDS" at 02:02 /every:M,T,W,Th,F,S,Su net stop "Cold Fusion Application Server"
at 02:03 /every:M,T,W,Th,F,S,Su net start "Cold Fusion Application Server" at 02:04 /every:M,T,W,Th,F,S,Su net start "Cold Fusion RDS" at 02:05 /every:M,T,W,Th,F,S,Su net start "Cold Fusion Executive"
at 02:10 /every:M,T,W,Th,F,S,Su net stop "w3svc" at 02:11 /every:M,T,W,Th,F,S,Su net start "w3svc"
@ECHO OFF
Dave
-----Original Message----- From: IMail_Forum-owner@list.ipswitch.com [mailto:IMail_Forum-owner@list.ipswitch.com]On Behalf Of Len Conrad Sent: Friday, October 13, 2000 12:05 AM To: IMail_Forum@list.ipswitch.com Subject: Re: [IMail Forum] Bat file
>What we need is a script to execute the bat file. Would appreciate >any help from you Imail gurus.
A .bat file is an executable script. What scripting language are you using?
To verify the precise service names, just
NET START
Len
http://BIND8NT.MEIway.com: ISC BIND 8.2.2 p5 installable binary for NT4 http://IMGate.MEIway.com: Build free, hi-perf, anti-spam mail gateways