script problem

Advertisement

mroush4100
Guest

script problem

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

Reply with quote

mroush4100
Guest

Re: script problem

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

Reply with quote

Advertisement

You can post new topics in this forum