WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
If a file is present move another (Read 777 times)
ercole77
YaBB Newbies
*
Offline



Posts: 5
If a file is present move another
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
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2232
The Netherlands
Re: If a file is present move another
Reply #1 - 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?
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1