Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get "date" of file and add to html

Status
Not open for further replies.

Soundlover4711

Technical User
Joined
Jul 27, 2005
Messages
15
Location
NL
Hi All!

I'd like to create a script which detects the date of a fiel (virus definition file) and add it to a line in a html file.

The goal is to have an html file, for example, with the line: virus definition: >date of file<
 
Have a little search in this forum (or the ASP forum - forum333) for FileSystemObject (or FSO). FSO will allow you to find out various file properties (including dates). It will also show you how to append that information into another file (including html files)

Tony

Spirax-Sarco - steam traps control valves heat exchangers
Sun Villa - Luxury Florida accommodation
 
Thanks, if found a scrip. But now I have the problem that the name of the file is changed every day. In my script I have the following line to specify the filename:

filespec="\\myfileserver\VPHOME\file1.XDB"

How can I use just the file extension (.XDB)???

I tried filespec="\\myfileserver\VPHOME\*.XDB" but that doesn't work!
 
Have a look at the Files collection of the Folder object.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top