how can i pass arguments to .bat with /script option
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
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