Tally List : mailing list management, archiving, and analysis
click for archive home
 
Archive of:
Imail Forum
Ipswitch list for Imail
 
home
24 hour view
quick stats
weekly updates
 
all tallylists
corporate solutions
archive your favorite
help / feedback


Search the Tallylist search by keyword:

About Imail :
product's home
product's list home
 
  Archived TallyList / Imail Forum: 
Subject: RE: Bat file
Dave Marchette (85p/+2r)     Posted: Friday 13 Oct 2000
This post: 31 views, +0 rating

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


Similar Subject Line Posts (+/- two weeks of this post)
RE: Bat file  13 Oct 2000 (this post)   (31 v/ +0 r)
Re: Bat file  13 Oct 2000   (23 v/ +0 r)
Bat file  12 Oct 2000   (19 v/ +0 r)
RE: Bat file  12 Oct 2000   (19 v/ +0 r)
Bat file  12 Oct 2000   (16 v/ +0 r)
 

Send a reply to the Imail Forum list!
click to send a reply! NOTE: Many lists will reject your post unless you have already registered with them. Also - don't forget the right account to send from (for those with multiple emails!)

Feedback: If this post was exceptionally helpful, please help by giving this post a positive review.

 

TallyList : copyright Ububik - 2000