WINSCRIPT file
I am new to this winscript and need some help. I want to upload file from my server to SFTP server and then delete the file from local directory.
I created this script which upload the file ftp server without any issue but i am not able to perform the delete step using put- delete command .
option batch abort ------------ THIS SCRIPT WORKS FOR FILE UPLOAD
option confirm off
open sftp://xxx:xx@1xx.247.162.2xx
cd //Locations
put C:\test.txt
close
exit
===================================================
But when i add the delete option with PUT command then it donot works
option batch abort ------------ THIS SCRIPT DONOT WORKS FOR FILE UPLOAD and DELETE
option confirm off
open sftp://xxx:xx@1xx.247.162.2xx
cd //Locations
put -delete C:\test.txt
close
exit
==================================================================================
Can some please review my script and let me know what missing in order to achive delete process once file is uploaded
I created this script which upload the file ftp server without any issue but i am not able to perform the delete step using put- delete command .
option batch abort ------------ THIS SCRIPT WORKS FOR FILE UPLOAD
option confirm off
open sftp://xxx:xx@1xx.247.162.2xx
cd //Locations
put C:\test.txt
close
exit
===================================================
But when i add the delete option with PUT command then it donot works
option batch abort ------------ THIS SCRIPT DONOT WORKS FOR FILE UPLOAD and DELETE
option confirm off
open sftp://xxx:xx@1xx.247.162.2xx
cd //Locations
put -delete C:\test.txt
close
exit
==================================================================================
Can some please review my script and let me know what missing in order to achive delete process once file is uploaded