"It doesn't work" is not a problem description.
Tell us what goes wrong. Session log file would help too.
Hi Martin,
I try to upload on nas multiple directories (and his subdir) from multiple sources. It doesn't works.
Other problem is timesamp. Is it possible to preserve timestamp on directories ? This facilitates rotation of backups
Here is my script. Tankx.
open sftp://user:password@192.xxx.xxxx.xxx
# Force binary mode transfer
option transfer binary
#remote directory
cd //other/
#lcd local directory
lcd e:\
option exclude "$RECYCLE.BIN/"
put *
mv * /other/1
lcd C:\Users\pc-user-x\Documents
option exclude "$RECYCLE.BIN/"
put *
mv * /other/2
# Disconnect
close
# Exit WinSCP
exit