Single file move/rename
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
I have a instance where a file is posted on our FTP server with a name like:
FSE-MAINES_mmddyyyy_hhmmss.txt
I need to place this file in one folder (on another server) as FSE.TXT and a copy of the file in an archive folder (on the same server as the FSE.TXT file).
Not sure how to grab FSE-MAINES_mmddyyyy_hhmmss.txt with a wildcard and do the move or copy with the rename.
FSE-MAINES_mmddyyyy_hhmmss.txt
I need to place this file in one folder (on another server) as FSE.TXT and a copy of the file in an archive folder (on the same server as the FSE.TXT file).
Not sure how to grab FSE-MAINES_mmddyyyy_hhmmss.txt with a wildcard and do the move or copy with the rename.
- Support Specialist
- Posts: 590
- Joined: Tue Jul 17, 2012 2:12 pm
- Location: Phoenix, AZ
-
Here's some example XML that you could use to get your desired results:
Code: Select all
<createFileList label="Get list of Files" fileListVariable="MyFileList" version="1.0">
<fileset dir="/Path/To/My/File">
<wildcardFilter>
<include pattern="FSE-*" />
</wildcardFilter>
</fileset>
</createFileList>
<copy label="Copy to Server" sourceFile="${MyFileList}" destFile="\\Server\Path\to\Destination\FSE.txt" whenFileExists="overwrite" version="1.0" />
<copy label="Copy to Archive" sourceFile="${MyFileList}" destFile="\\Server\Path\to\Archive\FSE.txt" whenFileExists="overwrite" version="1.0" />
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
2 posts
Page 1 of 1