Hello,
If your file name 100% has file extension:
Get file extension:
Response.Write UBound (Split (LCase ("filename.com.txt"), ".", -1, 1))
Get date/time stamp:
N = Now
Response.Write Right ("0" & Year (N), 4) & Right ("0" & Month (N), 2) &
Right ("0" & Day (N), 2) & "_" & Right ("0" & Hour (N), 2) & Right ("0" &
Minute (N), 2) & Right ("0" & Second(Now), 2)
Or, simple rename file later, after upload. Do upload in some temporarely
folder (by date/time), then rename file.
With best regards,
--
Should you have any questions, please don't hesitate to contact me.
If you response to an email, please quote the complete message.
http://1click.lv
"kbrad" <kb***@discussions.microsoft.com> wrote in message
news:9D**********************************@microsof t.com...
I am uploading files to my webserver using an asp upload script and would
like to add a timestamp just before they are saved to the server.
This would mean that filename.txt on my server would be uploaded to the
webserver as filenameYYMMDDhhmmss.txt or something similar.
Can anyone advise how to do this?