0

I need to create a validation function in batch file to check for availability of FTP server because I'm executing put command then deleting my locally stored files. The Problem is if i don't check if FTP server is up, files are not put to server but locally deleted.

1

1 Answer 1

1

What about simply use "ping" and than use some condition with "$?" > when $? returns "2" (I think) the ftp server is down

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.