Re: Get remote path and file into local relative path
Useget /*
and exclude everything you do not want to transfer using-filemask=
.
prikryl, thanks for pointing me in the right direction.
This is what I came up with:
winscp.exe /console /command "option confirm off" "open sftp://root:password@192.168.0.145" "get /root/MYFOLDER/test.txt" "close" "exit"
xcopy "test.txt" ".\root\MYFOLDER\" /Y