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>&nbsp;- You can use a .bat file to run the .php file. <br>&nbsp;- You can adjust the code to look for modification (mtime), creation (ctime) and access (atime) times using the PHP _stat_ function.
<br>&nbsp;- You can adjust the time so that only day old files are deleted.<br>&nbsp;- 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> &lt;<a href="mailto:jmckenna@dmsolutions.ca">jmckenna@dmsolutions.ca</a>&gt; 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 &quot;sess_&quot; folders could be deleted as well occasionally.<br><br>We might as well delete the entire contents of the tmp folder.&nbsp;&nbsp;I think<br>I'll add this to the next MS4W release, give it a shot:<br>
<br>&nbsp;&nbsp;- move the del-ms_tmp.bat up one folder to /ms4w<br>&nbsp;&nbsp;- rename it to del-tmp.bat<br>&nbsp;&nbsp;- change the contents of that file to:<br><br>&nbsp;&nbsp;@ECHO OFF<br><br>&nbsp;&nbsp;REM this script deletes the ALL contents of the tmp directory<br>
&nbsp;&nbsp;REM (i.e. the MapServer-created gifs)<br><br>&nbsp;&nbsp;move tmp\README_tmp.txt .<br>&nbsp;&nbsp;rmdir /S /Q tmp<br>&nbsp;&nbsp;md tmp<br>&nbsp;&nbsp;cd tmp<br>&nbsp;&nbsp;md ms_tmp<br>&nbsp;&nbsp;cd ms_tmp<br>&nbsp;&nbsp;md buttons<br>&nbsp;&nbsp;cd ../..<br>&nbsp;&nbsp;move README_tmp.txt tmp<br><br>&nbsp;&nbsp;echo cleaned TMP folder contents
<br><br><br>That might help u.&nbsp;&nbsp;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>&gt; I know the del-ms_tmp.bat file cleans up the ms_tmp folder.....but do the<br>&gt; &quot;sess&quot; folders under tmp need to be deleted once in awhile also?<br>&gt;<br>&gt;<br>&gt; Kevin<br>&gt;<br>&gt;<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>|&nbsp;&nbsp;Aaron Koning<br>|&nbsp;&nbsp;Information Technologist<br>|&nbsp;&nbsp;Prince George, BC, Canada.
<br>+--------------------------------------------<br>|&nbsp;&nbsp;<a href="http://datashare.gis.unbc.ca/fist/">http://datashare.gis.unbc.ca/fist/</a><br>|&nbsp;&nbsp;<a href="http://datashare.gis.unbc.ca/gctp-js/">http://datashare.gis.unbc.ca/gctp-js/
</a><br>+--------------------------------------------