Topic "Having Trouble uploading to remote server HELP"

Author Message
[View user's profile]

Joined: 2009-03-08
Posts: 1
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
# 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

This is what i see in

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

C:\Program Files\WinSCP> /console /script=example1.txt
batch on
confirm off
Searching for host...
Connecting to host...
Using username "000-8143".
Authenticating with pre-entered password.
Starting the session...
Reading remote directory...
Session started.
Active session: [1]
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 '' closed.
No session.

ANy feedback would be greatlty appreciated Confused
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27086
Location: Prague, Czechia
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?
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License