Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

mroush4100

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
mroush4100

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