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

martin

Re: Having Trouble uploading to remote server HELP

I do not see any problem with your script. Can you add "ls" command to the end to reveal actual content of the directory? BTW, what version of WinSCP are you using? What protocol?
tkilp

Having Trouble uploading to remote server HELP

I have wriiten a script that should upload my files from a directory on my local pc to a remote server. I run the script and it seems to work fine, but when i o to the WinSCP GUI to make sure it worked my files are not there: Here is the script I am running.
option batch on
# Disable overwrite confirmations that conflict with the previous
option confirm off
open 000-8143@ftpprd.tradebeam.com
# Change remote directory
cd /filer/webmethods/gate/sftp/000-8143/in
# Force binary mode transfer
option transfer binary
# upload file from the local directory c:\export\

put c:\export\*.txt
# Disconnect
close


This is what i see in WinSCP.com

C:\Documents and Settings\459769\My Documents\intergraph>cd C:\Program Files\Win
SCP\

C:\Program Files\WinSCP>winscp.com /console /script=example1.txt
batch on
confirm off
Searching for host...
Connecting to host...
Authenticating...
Using username "000-8143".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [1] 000-8143@ftpprd.tradebeam.com
/filer/webmethods/gate/sftp/000-8143/in
transfer binary
20090308TrackingFlatFile. | 0 KiB | 0.0 KiB/s | binary | 100%
TrackingFile_2009_02_24.t | 0 KiB | 0.0 KiB/s | binary | 100%
Session '000-8143@ftpprd.tradebeam.com' closed.
No session.
winscp>

ANy feedback would be greatlty appreciated :?