running script in a line rather than having them in casdcade

Advertisement

agassparkle
Joined:
Posts:
1

running script in a line rather than having them in casdcade

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:
29,561
Location:
Prague, Czechia

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

agassparkle wrote:

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
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