On May 13, 10:29*am, adilsiv <joh...@newsgroup> wrote:
> Hello guys,
> How do I write a batch script to check a particular folder to find any
> files present.
> Once the files are present,have to stop a service which running on a
> server,before cut and paste all the .xml files from that location to
> another location.then restart the service and copy back into the first
> location (that I can use robocopy /S for leaving the empty folders/sub
> then the next step to check whether any files are present at the
> original queue which haven't processed by the above mentioned
> service,do the same step again and again until all the folders/sub
> folders becomes empty(all the files should be processed by the XXX
> Thanking in advance,
Have a look here: http://gallery.technet.microsoft.com...e-532258ff9cce
It seems to cover most of what you want to do.