Computing.Net > Forums > Programming > Batch file to check a directory is

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 a directory is

Reply to Message Icon

Name: trusp
Date: December 5, 2008 at 04:34:18 Pacific
OS: MS Windows XP
CPU/Ram: Intel DUO
Product: Ms / E6550
Comment:

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.

Batch file must be DOS based.

Please help me on this.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: December 5, 2008 at 09:58:10 Pacific
Reply:

No joy with date math.


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

M2


0

Response Number 2
Name: Wahine
Date: December 5, 2008 at 14:04:43 Pacific
Reply:

Do you want a list of folders which were modified exactly 30 days before today's date or do you want the list to include all folders which were modified > 29 days ago?

Need the format of your date (%date%)


0

Response Number 3
Name: trusp
Date: December 5, 2008 at 20:19:52 Pacific
Reply:

thanks for your response.

I need All folders which are > 29 days ago?
I not have any specific date format.

Just I need a batch file to list all the folders which are >=30 days old (From the date of modification.)

batch file must be a DOS based one.
Please help me asap.


0

Response Number 4
Name: Mechanix2Go
Date: December 5, 2008 at 21:31:25 Pacific
Reply:

"I not have any specific date format."

LOL


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

M2


0

Response Number 5
Name: trusp
Date: December 5, 2008 at 21:41:46 Pacific
Reply:

My complete requirement is:
To run a DOS based batch file passing a
directory path as argument
and it must respond all the folders in the
root directory which are 30days old.

This is the Date format in DOS 12/06/2008.


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






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 a directory is

Batch file to replace a word www.computing.net/answers/programming/batch-file-to-replace-a-word/15770.html

A batch file to kill a process www.computing.net/answers/programming/a-batch-file-to-kill-a-process/12884.html

Batch File to Create a Shortcut www.computing.net/answers/programming/batch-file-to-create-a-shortcut/13374.html