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
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: Checks, Ms Dos Batch, New Folder

April 20th, 2009 at 12:07
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_
April 23rd, 2009 at 06:30
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