Blog Archives

Log Events in Classic ASP to File System

Here is some code I created many years ago to log events on a web site using Classic ASP. All the code was placed into an include file called logEvent.asp. logFile = “C:\SomePath” Sub LogEvent (pageName, user, message) Const ForWriting

Tagged with: ,
Posted in Classic ASP

Using Recursion To Return a List of all Files on a Web Site

When I decided to build a sitemap for INeedCoffee, I was able to pull a list of URLs from the database. One simple query provided me with all the URLS on the web site. But what if you don’t have

Tagged with: , ,
Posted in C#

Delete Files using C#

When I first wrote the original version of the Mask Email Image Generator (Email Obfuscator), I didn’t bother to add any code to periodically remove the images from the server. Yesterday I discovered it had almost 50,000 images in that

Tagged with: , ,
Posted in ASP.NET, C#