how to make a ms dos batch file that checks if there is a new file uploaded to a certian folder. ?

April 19th, 2009
Posted by: admin

checking for new file must be done every hour.
maybe will be better to check for last modified date for the file for the script to know there is a new file. note old file will be overwritten by the new file

By: nick



Tags: , ,

This entry was posted on Sunday, April 19th, 2009 at 14:55 and is filed under batch. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Responses to “how to make a ms dos batch file that checks if there is a new file uploaded to a certian folder. ?”

  1. Ben C Says:

    prob a script would be better…i don’t know scripting available on ms pc’s

    but you’d want it to call the folders current size
    compare it to the previously called size
    if size1 != newsize then…(trigger how you want to display the info_

  2. Cloud Says:

    C:\cmd>watchFolder .
    0:38:32.64 [Added]: –a—— 2008/09/14 AM 12:08 60 C:\cmd\t.txt
    0:38:38.39 [Modified]: –a—— 2008/09/14 AM 12:38 61 C:\cmd\t.txt
    0:38:49.39 [Deleted]: C:\cmd\t.txt

    Screenshot:

    You can download watchFolder.cmd from

    And you need download grep for Windows from
    or

Leave a Reply