Hi again,
No answers? Sigh... HELP ME PLEASE!
This is my script (sensitive information has been marked out with x's):
option batch on
option confirm off
option reconnecttime off
option transfer binary
open ftp://xxxxxxxx:
[email protected]
put c:\xxx.xxx /xxx/xxxxxxx/xxxxxxxxxx/xx/xxxxx/xxxx/xx/xxx.xxx
exit
---
These are the on-screen results (sensitive information has been marked out with x's):
batch on
confirm off
reconnecttime off
transfer binary
Connecting to xxxxx.xxxxx.xxx ...
Connected with xxxxx.xxxxx.xxx. Waiting for welcome message...
Connected
Starting the session...
Reading remote directory...
Session started.
Active session: [1]
[email protected]
c:\xxx.xxx | 97232 KiB | 0.0 KiB/s | binary | 34%
Lost connection.
Timeout detected.
Copying files to remote side failed.
Opening data connection for xxx.xxx.
(A)bort, (R)econnect (0 s): Reconnect
Connecting to xxxxx.xxxxx.xxx ...
Connection failed.
The requested name is valid, but no data of the requested type was found.
Connection failed.
(A)bort, (R)econnect (4 s): Abort
Lost connection.
Timeout detected.
Copying files to remote side failed.
Opening data connection for xxx.xxx.
Copying files to remote side failed.
Session '
[email protected]' closed.
No session.
C:\WinSCP>
I manually disconnected from the internet when the file reached 34% for testing purposes. I wanted the script to "abort" the upload (put) and simply exit back to DOS with an errorlevel of 1. I also want the file to be overwritten if it already exists and without questioning me. Of course, if I put a -append in the put statement then I would obviously want it to append (but that's another story for now).
Note that I had to manually press A to Abort the script. The thing is, I don't want it to try to reconnect, but that is what it was doing above. I thought my options would give me what I want, but it does not. Please help! :)