Reply
Command line loop vs. scheduler
Old 05-08-2008, 10:11 PM Command line loop vs. scheduler
Skilled Talker

Posts: 99
What are the pros and cons of lauching a command file (.bat file) with a scheduler vs. just having the .bat file commands be in a loop like so:

Code:
:TOP
"C:\Program Files\  /file "C:\Folder\*.txt" /
move 0 "C:\EndFile\" ""

sleep 60

GOTO TOP
Thanks.
chrisj is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Old 05-09-2008, 05:51 AM Re: Command line loop vs. scheduler
chrishirst's Avatar
Super Moderator

Posts: 10,642
Location: Blackpool. UK
No server admin in their right mind would let you run a batch file with a continuous loop.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-09-2008, 05:56 AM Re: Command line loop vs. scheduler
tripy's Avatar
Fetchez la vache!

Latest Blog Post:
Pretty pretty please….
Posts: 1,689
Name: Thierry
Location: In the void
And what about error/exception handling, ressources limitation and such?
Once you have launched your loop, how do you pause/stop it ?

Scheduler have been developped to allow you more flexibility and control over your jobs.
I don't see any valid reason to short-circuit them.
__________________
Listen to the ducky: "This is awesome!!!"

tripy is online now
Reply With Quote
View Public Profile
 
Old 05-09-2008, 03:38 PM Re: Command line loop vs. scheduler
willcode4beer's Avatar
Webmaster Talker

Posts: 525
Name: Paul Davis
Location: San Francisco
Quote:
Originally Posted by chrishirst View Post
No server admin in their right mind would let you run a batch file with a continuous loop.
Yep, this is what cron jobs are for
__________________
Paul Davis
willCode4Beer.com (coding for all the right reasons)
willcode4beer is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to Command line loop vs. scheduler
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML


Page generated in 0.14250 seconds with 14 queries