Hi Jeff,<br><br>Since PHP is installed with MS4W, you may want to use a bit of PHP code. FIST uses the _stat_ PHP function to delete files that haven't been accessed in 30 minutes (See how its done in FIST: <a href="http://tinyurl.com/fa9ws">
http://tinyurl.com/fa9ws</a>).<br><br> - You can use a .bat file to run the .php file. <br> - You can adjust the code to look for modification (mtime), creation (ctime) and access (atime) times using the PHP _stat_ function.
<br> - You can adjust the time so that only day old files are deleted.<br> - You can adjust the code to delete only certain extensions, etc.<br><br>Aaron<br><br><div><span class="gmail_quote">On 6/8/06, <b class="gmail_sendername">
Jeff McKenna</b> <<a href="mailto:jmckenna@dmsolutions.ca">jmckenna@dmsolutions.ca</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
yes the Chameleon "sess_" folders could be deleted as well occasionally.<br><br>We might as well delete the entire contents of the tmp folder. I think<br>I'll add this to the next MS4W release, give it a shot:<br>
<br> - move the del-ms_tmp.bat up one folder to /ms4w<br> - rename it to del-tmp.bat<br> - change the contents of that file to:<br><br> @ECHO OFF<br><br> REM this script deletes the ALL contents of the tmp directory<br>
REM (i.e. the MapServer-created gifs)<br><br> move tmp\README_tmp.txt .<br> rmdir /S /Q tmp<br> md tmp<br> cd tmp<br> md ms_tmp<br> cd ms_tmp<br> md buttons<br> cd ../..<br> move README_tmp.txt tmp<br><br> echo cleaned TMP folder contents
<br><br><br>That might help u. Of course people using ka-map might not like their<br>kacache folder being deleted...but speak up now if so!<br><br>(if anyone has a smarter script please contribute it!)<br><br>jeff<br><br>
<br><br>> I know the del-ms_tmp.bat file cleans up the ms_tmp folder.....but do the<br>> "sess" folders under tmp need to be deleted once in awhile also?<br>><br>><br>> Kevin<br>><br>><br><br>
_______________________________________________<br>ms4w-users mailing list<br><a href="mailto:ms4w-users@lists.maptools.org">ms4w-users@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/ms4w-users">
http://lists.maptools.org/mailman/listinfo/ms4w-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>+--------------------------------------------<br>| Aaron Koning<br>| Information Technologist<br>| Prince George, BC, Canada.
<br>+--------------------------------------------<br>| <a href="http://datashare.gis.unbc.ca/fist/">http://datashare.gis.unbc.ca/fist/</a><br>| <a href="http://datashare.gis.unbc.ca/gctp-js/">http://datashare.gis.unbc.ca/gctp-js/
</a><br>+--------------------------------------------