How to ensure that ftp scritp ran fine

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
RaviCKota
Posts: 2
Joined: 17 Mar 2010 11:26

How to ensure that ftp scritp ran fine

#1 Post by RaviCKota » 17 Mar 2010 11:32

Hi All,

In our project we use several ftp and scp scripts. All these scritps are usually triggered through DOS batch files. Something like

ftp -v -i -d -s:E:\Apps\Scripts\Test\Confirm.ftp

Now the problem is, how can I know that Confirm.ftp did ran successfully with out any issues.

Say
ftp -v -i -d -s:E:\Apps\Scripts\Test\Confirm.ftp
Send some email notification after completion.

Now, if the Confirm.ftp fails, still I would be getting email confirmation saying that the job ran fine which is wrong. How can I fix this. How to tap the return code of the ftp script execution.

Thanks
RK.

RaviCKota
Posts: 2
Joined: 17 Mar 2010 11:26

Re: How to ensure that ftp scritp ran fine

#2 Post by RaviCKota » 18 Mar 2010 09:59

Could some one help me out with this ?

Post Reply