-
New Server - Clean up scratch directory
Many users are migrating their ASP-db applications to newer servers and mostly W2003. On top of a few security issues mostly concerning directories, the migration is usually pretty straight forward. In response a few support calls in WS2003 installation, We installed a new W2003 server and only install ASP-db (classic and Tornado) in it and it works right away. So, if you should encounter installation problems in your new server, build a new disk pack.
Another reminder is to set a schedule .bat file to delete all the files in the scratch directory once a day - c:\inetpub\wwwroot\tornado\scratch
Frank
-
How to clean up scratch dir?
If you own your server, you can just schedule a task to delete the files like -> del c:\inetpub\wwwroot\tornado\scratch\*.* /y.
If you have your site hosted with an ISP, then you can use the following code to perform the clean up. The filename can be CleanUp.aspx and just schedule CleanUp.aspx to execute once a day.
<%@ Import namespace="System.IO" %>
<%@ Page Language="VB" Debug="true" %>
<script language="vb" runat="server">
Sub Page_Load(Source as Object, E as EventArgs)
Dim fs As String() = Directory.GetFiles(Server.MapPath("/tornado/scratch"))
For Each f As String In fs
File.Delete(f)
Next
End Sub
</script>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|