Topic "how can i pass arguments to .bat with /script option"

Author Message
mani
[View user's profile]

Joined: 2006-08-19
Posts: 1
my problem is -
the batch file which i am calling needed to be passed an argument.
suppose there is a bat file which i am passing to WinSCP3.exe as-:

WinSCP3.exe /console /script="Call.bat"
this is okay.

the problem is i want to pass argument to that Call.bat
WinSCP3.exe /console /script="Call.bat LogAug16"

something like this.But it,s not working.

the Call.bat contains-:

open example@rac.com
option transfer text
put c:\logs\%1 /home/windows
close
exit

if somebody knows any other way of passing the arg to bat file via winscp
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
WinSCP script does not allow arguments. However you can make a batch with arguments to create temporary WinSCP script file.
_________________
Martin Prikryl
decunde

Guest


If does not accept arguments I did not get the meaning for the "parameter". Can someone explain "parameter"?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
decunde wrote:
If does not accept arguments I did not get the meaning for the "parameter". Can someone explain "parameter"?

The post you react to is more than 3 years old, there was no /parameter then.

See documentation to learn how to use /parameters.
_________________
Martin Prikryl
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