I had the wrong idea there, but now I'm using the "Execute Process Task", which seems more suitable.
I specify the process as:
C:\WinSCP3\WinSCP3.com
and the parameter:
/script=winscp.txt
winscp.txt looks like this:
option batch on
option confirm off
open user@somewhere
cd /in/
option transfer binary
put C:\WinSCP3\test.txt
close
exit
Now winscp runs but the file is not uploaded. See the lines from the logfile below.
I can upload it sucessfully using the winscp GUI, so any tips as to why it fails using the script?
Thanks
Leslie
--------------------------------------------------------------------------
WinSCP Version 3.7.6 (Build 306) (OS 5.2.3790 Service Pack 1, v.1289)
Login time: 02 November 2005 21:25:33
--------------------------------------------------------------------------
Session name: user@somewhere
Host name: hostname (Port: 22)
User name: user (Password: Yes, Key file: No)
Transfer Protocol: SFTP (SCP)
SSH protocol version: 2; Compression: No
Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
SSH Bugs: -,-,-,-,-,-,-,-
SFTP Bugs: -,-,-
Proxy: none
Return code variable: Autodetect; Lookup user groups: Yes
Shell: default, EOL: 0
Local directory: default, Remote directory: home, Update: No, Cache: Yes
Cache directory changes: Yes, Permanent: Yes
Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
--------------------------------------------------------------------------
Looking up host "hostname"
Connecting to xxx.xxx.xxx.xxx port 22
Waiting for data timed out, asking user what to do.
Asking user:
Host has not answered for 15 seconds.
Wait for another 15 seconds? Pressing 'Abort' button will close session. ()
Attempt to close connection due to fatal exception:
Terminated by user.
Closing connection.