Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guest

Re: Passing arguments to scripts

Excellent.

It appears you can pass
/parameter param1

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

Thanks!
martin

Re: Passing arguments to scripts

Please read documentation. If that does not help, come back.
jimmyjames

Passing arguments to scripts

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.