Moving files between Windows shares

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
2 posts Page 1 of 1

Cnile31

Posts: 7
Joined: Tue May 20, 2014 6:20 am

Post by Cnile31 » 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.
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>

Support_Rick

Support Specialist
Posts: 590
Joined: Tue Jul 17, 2012 2:12 pm
Location: Phoenix, AZ

Post by Support_Rick » Thu May 22, 2014 8:28 am
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\File.name)
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
2 posts Page 1 of 1