Posted: 2009-03-08 23:59
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
# Force binary mode transfer
option transfer binary
# upload file from the local directory c:\export\
This is what i see in WinSCP.com
C:\Documents and Settings\459769\My Documents\intergraph>cd C:\Program Files\Win
C:\Program Files\WinSCP>winscp.com /console /script=example1.txt
Searching for host...
Connecting to host...
Using username "000-8143".
Authenticating with pre-entered password.
Starting the session...
Reading remote directory...
Active session:  email@example.com
20090308TrackingFlatFile. | 0 KiB | 0.0 KiB/s | binary | 100%
TrackingFile_2009_02_24.t | 0 KiB | 0.0 KiB/s | binary | 100%
Session 'firstname.lastname@example.org' closed.
ANy feedback would be greatlty appreciated
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?
You can post new topics in this forum
And it's free!