Problems with using the put command in as script file
Thanks for your help
I am using winspc 4.2.4 Beta
The problem is the following
1. If I run a script one time it starts to put the files to the server.
2. If there is a problem and Winscp stops, I restart the script. At this point some of the files are on the server and the server is set to not overwrite files. In this situation, after the first file sent winscp stops even though there are other files to be sent.
Below is the error message
2009-11-07 17:09:45.462 File: "v:\MB\2009-11\MB3064.mov"
2009-11-07 17:09:45.462 Copying "v:\MB\2009-11\MB3064.mov" to remote directory started.
2009-11-07 17:09:45.462 Binary transfer mode selected.
2009-11-07 17:09:45.462 Starting upload of v:\MB\2009-11\MB3064.mov
> 2009-11-07 17:09:45.478 TYPE I
< 2009-11-07 17:09:45.540 200 Switching to Binary mode.
> 2009-11-07 17:09:45.540 PORT 192,168,0,129,14,97
< 2009-11-07 17:09:45.603 200 PORT command successful. Consider using PASV.
> 2009-11-07 17:09:45.603 STOR MB3064.mov
< 2009-11-07 17:09:45.743 150 Ok to send data.
< 2009-11-07 17:11:55.946 226 File receive OK.
2009-11-07 17:11:55.946 Upload successful
2009-11-07 17:11:55.961 File: "v:\MB\2009-11\MB3058b.mov"
2009-11-07 17:11:55.961 Copying "v:\MB\2009-11\MB3058b.mov" to remote directory started.
2009-11-07 17:11:55.961 Binary transfer mode selected.
2009-11-07 17:11:55.961 Starting upload of v:\MB\2009-11\MB3058b.mov
> 2009-11-07 17:11:55.977 TYPE I
< 2009-11-07 17:11:56.039 200 Switching to Binary mode.
> 2009-11-07 17:11:56.039 PORT 192,168,0,129,14,100
< 2009-11-07 17:11:56.118 200 PORT command successful. Consider using PASV.
> 2009-11-07 17:11:56.118 STOR MB3058b.mov
< 2009-11-07 17:11:56.274 150 Ok to send data.
2009-11-07 17:15:37.632 Access to v:\MB\2009-11\MB3058b.mov was denied.
2009-11-07 17:15:37.632 Copying files to remote side failed.
> 2009-11-07 17:15:37.632 REST 0
< 2009-11-07 17:15:37.757 226 File receive OK.
Below is the script file
option echo on
option batch on
option confirm off
option reconnecttime 30
open ftp://userid:pw@208.101.36.42
option transfer binary
cd /
put v:\MB\2009-11\*.mov
put v:\MB\2009-11\2009-11*MB*.mov*.*
close
exit
I am using winspc 4.2.4 Beta
The problem is the following
1. If I run a script one time it starts to put the files to the server.
2. If there is a problem and Winscp stops, I restart the script. At this point some of the files are on the server and the server is set to not overwrite files. In this situation, after the first file sent winscp stops even though there are other files to be sent.
Below is the error message
2009-11-07 17:09:45.462 File: "v:\MB\2009-11\MB3064.mov"
2009-11-07 17:09:45.462 Copying "v:\MB\2009-11\MB3064.mov" to remote directory started.
2009-11-07 17:09:45.462 Binary transfer mode selected.
2009-11-07 17:09:45.462 Starting upload of v:\MB\2009-11\MB3064.mov
> 2009-11-07 17:09:45.478 TYPE I
< 2009-11-07 17:09:45.540 200 Switching to Binary mode.
> 2009-11-07 17:09:45.540 PORT 192,168,0,129,14,97
< 2009-11-07 17:09:45.603 200 PORT command successful. Consider using PASV.
> 2009-11-07 17:09:45.603 STOR MB3064.mov
< 2009-11-07 17:09:45.743 150 Ok to send data.
< 2009-11-07 17:11:55.946 226 File receive OK.
2009-11-07 17:11:55.946 Upload successful
2009-11-07 17:11:55.961 File: "v:\MB\2009-11\MB3058b.mov"
2009-11-07 17:11:55.961 Copying "v:\MB\2009-11\MB3058b.mov" to remote directory started.
2009-11-07 17:11:55.961 Binary transfer mode selected.
2009-11-07 17:11:55.961 Starting upload of v:\MB\2009-11\MB3058b.mov
> 2009-11-07 17:11:55.977 TYPE I
< 2009-11-07 17:11:56.039 200 Switching to Binary mode.
> 2009-11-07 17:11:56.039 PORT 192,168,0,129,14,100
< 2009-11-07 17:11:56.118 200 PORT command successful. Consider using PASV.
> 2009-11-07 17:11:56.118 STOR MB3058b.mov
< 2009-11-07 17:11:56.274 150 Ok to send data.
2009-11-07 17:15:37.632 Access to v:\MB\2009-11\MB3058b.mov was denied.
2009-11-07 17:15:37.632 Copying files to remote side failed.
> 2009-11-07 17:15:37.632 REST 0
< 2009-11-07 17:15:37.757 226 File receive OK.
Below is the script file
option echo on
option batch on
option confirm off
option reconnecttime 30
open ftp://userid:pw@208.101.36.42
option transfer binary
cd /
put v:\MB\2009-11\*.mov
put v:\MB\2009-11\2009-11*MB*.mov*.*
close
exit