Re: some files are not getting uploaded
You seem to mix up "download" and "upload". I'm going to assume that you mean "download" everytime.
The file was probably created only after the
To do "download and delete" in a transactional way (only delete the files that were downloaded), use
https://winscp.net/eng/docs/scriptcommand_get#delete
The file was probably created only after the
get command started (but before the rm command stated). So it was not downloaded, but was deleted.
To do "download and delete" in a transactional way (only delete the files that were downloaded), use
-delete switch of the get command (and remove the rm command):
lcd //dfs1/root/Shared3/B2B_SAL
get -delete -nopreservetime -nopermissions -resumesupport=on *
exit
https://winscp.net/eng/docs/scriptcommand_get#delete