@echo off rem send files to ssh/scp server set HOST="server1" set PSCP="C:\Program Files\Putty\pscp.exe" :again %PSCP% -r %1 %2 %3 %4 %5 %6 %7 %8 %9 %HOST%: shift if '%9 == ' goto :done shift shift shift shift shift shift shift shift goto :again :done