Archive | Batch files RSS for this section

Delete files older than x days in CLI

forfiles /p “C:\DIRECTORY” /d -7 /c “CMD /C del @FILE Bookmark on Delicious Digg this post Recommend on Facebook Share on Linkedin share via Reddit Share with Stumblers Share on technorati Tweet about it Subscribe to the comments on this post Bookmark in Browser Tell a friend

Continue Reading

Count files in a directory batch

dir “C:\FOLDER” /b/s |find /v /c “::” Bookmark on Delicious Digg this post Recommend on Facebook Share on Linkedin share via Reddit Share with Stumblers Share on technorati Tweet about it Subscribe to the comments on this post Bookmark in Browser Tell a friend

Continue Reading