Copy multi files from a list to Linux Server
In my case, I'd like to copy files in a list to an SSH server. So I guess you want something like that. This is my batch file and it run well.
set SRC_LIST=README.md scrapy.cfg
@echo off &SETLOCAL
(for %%f in (%SRC_LIST%) do (
set winscp_commands=!winscp_commands! "put %%f %REMOTE_FOLDER%"
%WINSCP% %REMOTE_STRING% /command %WINSCP_COMMANDS% exit