So you write ASP files for a living, or you need to knock one up for a little project that you're working on when you hit a problem. How do I get at the last modified date of a file I'm reading in from in my ASP? Bugger! Can't do that! Until now...
This little (14Kb) DLL file allows you to pass a filename in the ASP code and retrieve the file properties in one simple method. Need the modified date and time? No problem! Need the file length? Got that too!
The ASPFiles DLL supports the following methods:
So how does it work? All this DLL does is wrapper the VB commands which allow you to retrieve the properties from a given filename. Simple as that. You can't do these commands directly in your ASP code and there's also a memory leak when using the Format command anyway, so doing it this way gets round both problems.
The ASPFiles DLL comes as an install program which will install all the required DLLs onto your system. Simply download the Zip file, unzip it onto your IIS server and the run the setup routine. Could it get any easier?
Please Mail me if you make use of the ASPFiles DLL or you have any feedback or comments you would like to send!
| Back to Horrible.Demon |