Tag Archives: FileInfo

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 … Continue reading

Posted in Classic ASP | Tagged , | Comments Off

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 … Continue reading

Posted in C# | Tagged , , | Comments Off

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 … Continue reading

Posted in ASP.NET, C# | Tagged , , | Comments Off