Topic "Passing arguments to scripts"

Author Message
jimmyjames

Guest


Is there a way to pass arguments to scripts when invoking winscp from the command line?

I need to create a .com batch script that creates a new folder based on the current date, then starts a winscp script that downloads files into the new folder. To do this, I'd need to somehow pass the name of the new folder to the winscp script.

Thanks so much.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Please read documentation. If that does not help, come back.
_________________
Martin Prikryl
Guest




Excellent.

It appears you can pass
Code:
/parameter param1

on the command line and then in the script you can reference the parameter with
Code:
%1%


Thanks!
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License