I have a root folder for user 'ftp01' and that folder contains the following (sub)folders with XML files in it.
/cygdrive/c/program files (x86)/icw/home/ftp01/Input/folderA/acc/ /cygdrive/c/program files (x86)/icw/home/ftp01/Input/folderA/prod/ /cygdrive/c/program files (x86)/icw/home/ftp01/Input/folderB/acc/ /cygdrive/c/program files (x86)/icw/home/ftp01/Input/folderB/prod/
| -->FolderA | | | -->test (I want these XML files) | -->acc | -->prod | -->FolderB | | | -->test (I want these XML files) | -->acc | -->prod
If I point the script to only one "test" folder the script works perfectly, but when I use ROOT folder as remotepath and experiment with i.e. filemasks it won't work.
I can clone the script a couple of times with a different remotepath but then I have to maintain 6 scripts and I think it can be so much better.
I use CopSSH server for windows 2008R2. I attached the script to the post.
I hope you can help me out.
Thanks in advance!