|
Answer» I need to have a .bat job COPY files to another directory...easy enough...but I need the files to show the current date, so a browser will pick it up as the newest version.
Any ideas?Lot's of ideas, but without an OS it's hard to say if they would be workable on your system. Would you care to tell us, or would you have to kill us if you did?
Your OS is NOT a state secret. Cheesh. OS = Win 2000 ServerThe more I read your post, the more confused I get. After copying the files, what do you WANT to happen. Tag the date as part of the file name?, change the DateCreated, DateLastModified, or DateLastAccessed attributes?
Tagging the file name with a date can be done in batch language (easy in W2K)
Changing the file system dates is more problematic and would require a script.
I'm still not certain where or how the dates would affect the browser, perhaps you could explain more.
Let us know. B: I want to change the create date to today.
I can do this another way but I thought there might be some way to do with a .bat file.
These are default .pdf files. I use .bat to copy these default pages over in the AM. They say "No report for you today." Then later our staff copies current reports over these default files so the end user will see reports only when we have new valid info.
The problem is that I've been using the same default file for 3 years and now when a person has a newer version of this file in their system cache, that's what they see when they click on the link and the browser pulls up the newer of the files.
So they go to look at this Tuesday's report and they see last WEEKS from the cache since that date is newer than the 3-year-old default PAGE I intended them to see.
I've come up with a fix for this that doesn't involve changing dates with .bat.
Thanks for the help, LOVE the site.
|