Search found 3 matches

by forumHelp
09 May 2011 15:08
Forum: DOS Batch Forum
Topic: Need check if file exist older than n days then do a delete.
Replies: 6
Views: 14442

Re: Need check if file exist older than n days then do a del

Is the older than day looking at the date created or modified date?
by forumHelp
09 May 2011 12:58
Forum: DOS Batch Forum
Topic: Need check if file exist older than n days then do a delete.
Replies: 6
Views: 14442

Re: Need check if file exist older than n days then do a del

I tried replacing the "Set" to something to test with. I put some files in the c:\test folder and expected a few files to delete because it is older than 2 days. BUT, nothing was deleted. Did I do this wrong? Can you explain each "/P", "/M" etc -- what does it mean? set...
by forumHelp
09 May 2011 10:00
Forum: DOS Batch Forum
Topic: Need check if file exist older than n days then do a delete.
Replies: 6
Views: 14442

Need check if file exist older than n days then do a delete.

I'm not familiar in writing .bat scripting at all. I'm trying to do the following and need help! I know there is a command ForFiles that you can use to delete file older than n days. BUT I want to be able to check to make sure there are files to delete first (like do a file count) before actually us...