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
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.
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.
Summary: I'm needing help with a batch file to check the date of files in a particular directory and delete the files older than 90 days. Is there a way to do this in a batch file? Thanks. ...
Summary: i need a batch file that checks the attribute date from several xls files. When the date is today it has to open another xls file. When it is not today do nothing. This batch file must check the folde...
Summary: Hello, I need a batch file to list all directories which are 30days old in a specified path. Example C:\Sample\ Here all the directories which are 30days old from the modified date must be listed...