requirement: To remove file extension from remote file after succesful automated ftp transfer.
The file is of the form WDC0001.tmp and needs to be changed to WDC0001 on completion of the file transfer. This is a requierment of the client as they scan the destination folder and process files constantly. For this reason they do not allow transfer of files without a temporary file extension.
The issue is the number 0001 is a random number and varies for every file that has to be transfered.
The process needs to be automated as the client requires delivery at around 2.30am every day.
We have no issue sending the file. It will be the only file in the source and destination folders. So we can use mput *.tmp to send the file
The difficulty we have is how to remove the file extension from the remote file once it has been delivered.
The machine we are using to send the files is running windows server 2008
So we have access to powershell if needed for scripting. The server also has a copy of WSFTP_Pro 12 installed if that is of any use.
Does anyone have a suggestion as to how we can achieve this?