The tasks which should be done are e.g.
1.) COnnect to server 220.127.116.11
with user aaa and password bbb
2.) look in subfolder /mysample123
3.) if there are some files matching *.dat
then move them to the local folder
4.) Close session
How do I pass all these information in ONE WinSCP command line ?
Or is it better to use a batch file mybatch.txt
which contains all sub commands?
How do I pass the batch file name?
winscp.exe aaa:email@example.com /mysample123 /command "mv *.dat D:\data\fromremote"
does NOT work