Passing arguments to scripts

Advertisement

jimmyjames
Guest

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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: Passing arguments to scripts

Please read documentation. If that does not help, come back.
_________________
Martin Prikryl

Reply with quote

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!

Reply with quote

Advertisement

You can post new topics in this forum