Task Scheduler - GET and MOVE
I have a script setup to get files from my SFTP and place them on a local folder. Instead of deleting the file after I get the file, I would like to move it to a folder on my SFTP. The get function is working but the mv is not. Any ideas?
open sftp://********************/ -hostkey="ssh-rsa 2048 *******************=" -privatekey="*************************"
cd /upload
lcd C:\TEST
get file-int-*.mp
mv file-int-*.mp /old
exit
open sftp://********************/ -hostkey="ssh-rsa 2048 *******************=" -privatekey="*************************"
cd /upload
lcd C:\TEST
get file-int-*.mp
mv file-int-*.mp /old
exit