I have a webform on server1 that puts a text and a pdf file on server2, when successfully submitted.
What I want to happen on server2 is run some process that constantly checks within a folder for those text and pdf files. If the txt and pdf files exists, its supposed to run a batch file on those two files on server2.
How can I do that, basically some process needs to be constantly checking for 2 files in a folder on server2 and if they exists run a batch file.
I dont want to do it via scheduled tasks, as I dont want it to set to check for the files every 30 seconds. May be a windows service or another batch file that runs.. Not sure.
Please help.
Thanks
-Sarah