WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> How to... >> If a file is present move another
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1443011969

Message started by ercole77 on Sep 23rd, 2015 at 2:39pm

Title: If a file is present move another
Post by ercole77 on Sep 23rd, 2015 at 2:39pm
in a particular folder i have files created with random name for example:

file1.xml file2.xml

when these files are succesfully created, a corrispettive .ack file is created.

So i will have

file1.xml file1.ack file2.xml file2.ack

What i have to do:

Move a .xml file only if the corrispettive .ack is created.
The difficult part: file names are random and i have no control over them.

what is the best way to accomplish this task with watchdirectoy?

Many thanks for your help

Title: Re: If a file is present move another
Post by Gert on Sep 24th, 2015 at 7:30am
Hi,

This should be quite easy to do with a little script and using the "Run a bat file" task. I will be happy to write the script for you.

Can you give me a few examples using actual directory and file names?

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.