Guest David C Posted November 5, 2007 Posted November 5, 2007 I have a Windows 2003 server that I run an offsite backup. If the offsite connection is not available I would like to run a 2nd step (like in SQL Server) that only runs if the 1st step fails. Is this possible, and if so how? Can I run something that tests for a connection? Thanks. David
Guest Pegasus \(MVP\) Posted November 5, 2007 Posted November 5, 2007 Re: NT Backup steps "David C" <dlchase@lifetimeinc.com> wrote in message news:O%23PKex%23HIHA.3400@TK2MSFTNGP03.phx.gbl... >I have a Windows 2003 server that I run an offsite backup. If the offsite >connection is not available I would like to run a 2nd step (like in SQL >Server) that only runs if the 1st step fails. Is this possible, and if so >how? Can I run something that tests for a connection? Thanks. > > David You can use the humble ping command to test for a live connection: @echo off ping RemoteServer | find /i "bytes=" && goto Connected :NotConnected [your commands go here] goto :eof :Connected [your commands go here] goto :eof
Recommended Posts