Single file move/rename
Posted: Tue Mar 25, 2014 7:59 am
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.