Computing.Net > Forums > Programming > batch file to check modified date

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

batch file to check modified date

Reply to Message Icon

Name: montag451
Date: June 22, 2005 at 09:01:06 Pacific
OS: XP Pro
CPU/Ram: 1.3/256
Comment:

How can I use a batch file on XP Pro to check if ANY file in a directory (including any subdirectories) has been modified in the last 24 hours? If so, I want to run a zip command on the top-level directory.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: June 22, 2005 at 09:20:05 Pacific
Reply:

Doing math on the date sounds like a can of worms.

Might it do just as well to use pkzip to "freshen" an archive?

M2


If at first you don't succeed, you're about average.


0

Response Number 2
Name: montag451
Date: June 22, 2005 at 09:31:17 Pacific
Reply:

I am a programmer and I want the system to compress each folder in a certain directory into it's own archive. If checking the date modified is too complicated, how would I just loop through the directory and get the names of each subfolder? (so that I can then compress that subfolder)


0

Response Number 3
Name: Mechanix2Go
Date: June 22, 2005 at 11:49:19 Pacific
Reply:

If I understand the question,

dir /s/b/ad

M2


If at first you don't succeed, you're about average.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: batch file to check modified date

Batch file to delete files by date. www.computing.net/answers/programming/batch-file-to-delete-files-by-date/13144.html

Batch file to check file attribute www.computing.net/answers/programming/batch-file-to-check-file-attribute-/16175.html

Batch file to check a directory is www.computing.net/answers/programming/batch-file-to-check-a-directory-is-/17337.html