Running script in a line rather than having them in cascade

Advertisement

agassparkle
Joined:
Posts:
1

Running script in a line rather than having them in cascade

Hello,
I am very very new to using WinSCP with scripting.

Is it possible to run commands like
put pic1.jpg put pic2.jpg put pic3.jpg
rather than
put pic1.jpg
put pic2.jpg
put pic3.jpg
I am generating the file with Excel. That is why I am looking for a way to do it like this.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: running script in a line rather than having them in casdcade

@agassparkle: Do I understand right, that you want to run everything form a single (WinSCP) command line?
If that's the case, use /command switch:
https://winscp.net/eng/docs/commandline#scripting
See also
https://winscp.net/eng/docs/commandline#syntax
Also WinSCP GUI can generate a template command-line for you:
https://winscp.net/eng/docs/ui_generateurl

Reply with quote

Advertisement

You can post new topics in this forum