Page 1 of 1

Moving files between Windows shares

Posted: Thu May 22, 2014 6:32 am
by Cnile31
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.
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" />

		<delete inputFilesVariable="${processed}" version="1.0" />


Re: Moving files between Windows shares

Posted: Thu May 22, 2014 8:28 am
by Support_Rick
When using Network Shares and trying to move files, there are some issues with compatibility between the appliances that may or may not work. The option you took is a solution to that problem. (Copy, then Delete)

Another solution is to start your GoAnywhere Director with a Domain Service account (Windows) and give that Service Account permissions to the Target Servers (folders) you need to communicate with. Then, you can utilize the Move/Copy/Delete as needed utilizing the UNC Addressing, just as if it were a local folder (\\Server\Folder\Sub-Folder\