Vbscript check file date modified
Well, OK then, what else happened this year? After all, Peter gets harassed by monkeys pretty much everywhere he goes. Nicaragua, Salt Lake City, , you name it. There just seems to be something about Peter and monkeys.
What else? Of course, in all fairness she did have mixed emotions about that. On the one hand she got to go to Paris. On the other hand, she missed her year high school reunion. Anyway, that pretty much sums up the year. Not particularly memorable but, on the bright side, we expect to be a way better year. After all, it pretty much would have to be a way better year. MM needs a script that can look at all the files in a folder and all its subfolders and report back any folders that have nothing but old files; that is, a folder where none of the files have been modified in the past 90 days.
How can she do that? GetFolder objSubFolder. We start out by creating an instance of the Scripting. That brings us to this block of code:. For each file in the collection we grab the value of the DateLastModified property and assign it to a variable named dtmDate:. Close this window and log in.
Join Us Close. Join Tek-Tips Forums! Join Us! By joining you are opting in to receive e-mail. Promoting, selling, recruiting, coursework and thesis posting is forbidden. Students Click Here. Being the main folder contains a number of sub folders which contain additional folders and files, I may have to run something on each folder, but figured if I could get in an Excel format I could do the sorting in the spreadsheet itself.
I have written a few scripts to remove or move files older then a certain date, but never one to just report the date. It might be easiest to log the data in CSV format. This template gives you that. Connect and share knowledge within a single location that is structured and easy to search. But when I am accessing this file from an Indian standard time, the Modified date will be returned according to the current system time zone. As explained here Is there any way I can get this date with respect to the time zone provided.
How to calculate date difference in javascript. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. How to get the file modified date of a file with respect to a particular time zone in Jscript? Ask Question. Asked 9 years, 11 months ago. Active 7 years, 4 months ago. Viewed 21k times. OleObject "WScript. Improve this question.
0コメント