Computer Forums

Computer Forums (http://www.geekboards.com/forums/index.php)
-   Building Websites (http://www.geekboards.com/forums/forumdisplay.php?f=3)
-   -   First batch file attempt (http://www.geekboards.com/forums/showthread.php?t=907)

qaz555 03-04-2008 05:47 AM

First batch file attempt
 
I want to write a batch file that will move files of a certain extension that are older than 30 days to an archive directory. For example, move all .txt files in C:\someFolder\otherFolder to D:\anotherFolder\archive that were created 30 or more days ago.

How can I get the current date to compare to the date the file was created?
How can I specify that only a certain type of file be moved?

Is this type of thing possible in a batch file or should I use something else?

Thanks for any help.
_________________
Girly Myspace Layouts farmers group class action lawsuit


All times are GMT -5. The time now is 03:56 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
HTML Help provided by HTML Help Central.