Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ftp server - new file checker

Status
Not open for further replies.

jrwinterburn

IS-IT--Management
Jul 26, 2004
72
GB
I have an FTP server which some of my friends upload files to, in varying folders. I then copy those files across to my game server using robocopy on task scheduler and use them as needed. However, it's a pain to have to go through each of the folders to see what new files exist. Rather, I'd like to have vbscript that runs on a 30 min schedule and checks the folders for only new items, then emails me informing me which folder(s) have new files.

Any pointers on how I could do this in vbscript?

Thanks alot.
 
you could perhaps use a wmi blocked method call like in the monitor services thread just below/above your thread?
 
Are you dead set on this being a script?

I know you stated vbscript but theres some free software alternatives that work just as well.

Syncback has a free version that works well and you can set it to sync just about any way you desire including just modified files. The nice thing is you can run these jobs via scheduled tasks, thus making it so only those modified or new files copy across and you don't have a running process constantly.

Just my 2 cents and I am not affiliated with the software though I do use it for backup purposes at home.
 
Thank you both for your advice. I have decided, after looking both at WMI and 3rd party software, that the easiest thing to do is write a Windows Service to monitor the folders and then replicate the files that are new.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top