Using multiple variable in command-lin
I'll give this a go! Thanks
echo open sftp://my-sftp-site:v!so9tpjszd9O9@sftp.us2.pool.com/ -hostkey="ssh-rsa 2048 zeKC3/C87n3L12jSehP7r9B1LKHs3Vqo/PguPtVnUxQ=" > script.txt
for /F "tokens=1, 2 delims=;" %%A in (STD-Folders.txt) do (
echo lcd E:\Faxes\%%A >> script.txt
echo lcd get -delete *.pdf >> script.txt
)
echo exit >> script.txt
"C:\Program Files (x86)\WinSCP\WinSCP.com" /log="C:\WinSCP\SFTP\Logs\Log.txt" /ini=nul /script=script.txt
for
loop append a command to a (temporary) WinSCP script file, instead of running WinSCP.
for
loop.