After run script folder is deleted
Hi,
After running the script the folder
The remote directory is
After running the script the folder
Cartas_Garantia
is always deleted with the files, i only need to delete the files.
The remote directory is
/wortends/CartasdeGarantia/Cartas_Garantia/
after running the script the remote directory stays like this /wortends/CartasdeGarantia/
.
# Automatically abort script on errors option batch abort # Disable overwrite confirmations that conflict with the previous option confirm off # Connect to remote machine open sftp:(...) # Change remote directory cd /wortends/CartasdeGarantia/Cartas_Garantia/ # Download file to the local directory D:\FTP\IN\Teste get -delete /wortends/CartasdeGarantia/Cartas_Garantia -filemask=Carta*.pdf D:\FTP\IN\Teste\ # Disconnect close # Exit WinSCP exit