autologout ftp sript

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
xavier
Posts: 1
Joined: 19 Jan 2015 07:29

autologout ftp sript

#1 Post by xavier » 19 Jan 2015 07:42

hi,

My problem is how exiting a ftp script if the server is not available.
I have a script like this :

open ftp.server
login
passwd
bin
cd /DATA
dir
bye

If the ftp server is not available, i have the prompt ftp> and i want to quit the script ftp automaticaly.
is a command autologout exist ?

Than you for your response.

Squashman
Expert
Posts: 4488
Joined: 23 Dec 2011 13:59

Re: autologout ftp sript

#2 Post by Squashman » 19 Jan 2015 09:24

You would think BYE and QUIT would work the same. We usually use QUIT at the end of all of our FTP scripts.

Post Reply