Moving files between Windows shares
Posted: Thu May 22, 2014 6:32 am
We are trying to move files from one Windows share to another. Since using the "move" function didn't work we solved it by copying files from folder X to folder Y, and deleting the files from folder X when the copy is done. Also note that only the files which are copied should be deleted from folder X.
Does someone know if this is the only possible way or that the move can be realised in another way? I added my current code as an example.
Thanks in advance.
Does someone know if this is the only possible way or that the move can be realised in another way? I added my current code as an example.
Thanks in advance.
Code: Select all
<project name="Move files from folder X to folder Y" mainModule="Main" version="2.0">
<module name="Main" onError="abort">
<copy destDir="DestinationDir" processedSourceFilesVariable="processed" version="1.0">
<fileset dir="SourceDir" recursive="false" />
</copy>
<delete inputFilesVariable="${processed}" version="1.0" />
</module>
</project>