Topic "script problem"

Author Message
mroush4100

Guest


I have the below script that works but, when I execute it, it asks for the username and then it runs the script. Why is it asking for a username when it is passed in by the script below.

This is my command using WinSCP3.com utility:
C:\WinSCP3.com winscp3.exe /console /script="C:\sftpscript.txt"

script:
option batch on
option confirm off
open user:pword@sftp.mysite.com
cd /oufiles
option transfer binary
get File1-31-07.pgp C:\
exit

thanks,
Mike
mroush4100

Guest


I figured it out, the argument line should be: /script="C:\sftpscript.txt" instead of winscp3.exe /console /script="C:\sftpscript.txt"

Mike



mroush4100 wrote:
I have the below script that works but, when I execute it, it asks for the username and then it runs the script. Why is it asking for a username when it is passed in by the script below.

This is my command using WinSCP3.com utility:
C:\WinSCP3.com winscp3.exe /console /script="C:\sftpscript.txt"

script:
option batch on
option confirm off
open user:pword@sftp.mysite.com
cd /oufiles
option transfer binary
get File1-31-07.pgp C:\
exit

thanks,
Mike
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