Quantcast
Channel: File Services and Storage Forum
Viewing all articles
Browse latest Browse all 1766

Execute batch file if exists

$
0
0

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


Viewing all articles
Browse latest Browse all 1766

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>