Click to See Complete Forum and Search --> : Cron job for Windows (win32)
Hi,
i keep hearing about "cron jobs" for Linux. I was wondering if there's a software for windows that does the same thing.
I'm basically looking for an application that would check for files in a perticular directory and delete the unused files after 'N' amount of time since its last use.
your help would be greatly appreciated.
thanks in advance
:-)
sam
-------------
Looking for something, find it at:
www.SamarONLINE.co.uk
Portal
-------------
mithril
10-22-2001, 02:15 AM
Sam,
You can right PHP scripts to do this. Look at the Filesystem Functions section in the manual, specifically the stat() function, for ways to determine the time a file was created, last modifed, last accessed etc. Then, create a batch file which calls the script and place that batch file in the Schedule Manager. For example, I have a script which cleans my temp dir everytime the computer load 'Doze.
An alternative to the batch file is to create a exe using PHPCompiler and then pointing Schedule Manager at the exe. There are some limitations to PHPCompiler though, the script file you "compile" can't be longer than about 200 lines for example.
HTH.
http://www.php.net/manual/en/function.stat.php
http://phpuser.com/download/files/dev-tool/phpcompiler/
-geoff
ame12
10-22-2001, 03:56 PM
If you have WinNT or 2K, check the AT command line application... it's similar to CRON...
RW
===========================================
http://badblue.com
Free small footprint web server for Windows
File sharing, PHP, Access/Excel transcoding
===========================================
thanks for your responses :-)
i use windows me randy, so i doubt that its gonna be available.
i'm gonna look for that phpcompiler and see if that's any good.
i'm not a super-duper programmer so i may need some help.
but i must say, that is a brilliant idea Geoff.
i actually never thought of using the schedular.
thanks both of you.
:-)
i may need some help later if i manage to find a working link for phpcompiler
i'll write here soon
there *IS* cronjob for windows, and if you have win2k or winnt, it will run as a service.
http://www.kalab.com/freeware/cron/cron.htm
i'm gonna check it out now. but would it work for windows me?
thanks vocoder
:-)
sam
------------------
looking for something? find it @:
www.samaronline.co.uk
------------------
You can also look at the Open source application at.
http://www.cygwin.com/
It has complete cronjob stuff and is very cool.
-p
i'll try that, but i don't really want to download cygwin - last time i tried, it was gonna take hours
thanks
sam
:-)
------------------
looking for something? find it @:
www.SamarONLINE.co.uk
------------------
I had developed ocne a utility in Visual Basic which I used on server to schedule jobs, and run applications after a set time, in any interval frequencies.
You can make it run an application every N seconds, minutes, hours or days.
if anybody requires it, please mail me at skrecycle@rediffmail.com
-Saurabh
mrdance
07-19-2004, 05:55 AM
There is a nice, free alternative for Windows here.
http://www.visualcron.com
regards / Henrik
neteject.com (http://neteject.com)
bubblenut
07-19-2004, 05:58 AM
WOW!!
Candidate for biggest bump ever?
Good call though.
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.