For some different reasons I would like to change using a batch file for backup puposes.
I do can everything with the date/time stamp and copying across network to other computers and external hatd drives. However, unlike the batch file the VBA I am using only works if the other computers and/or external hard drives are turned. The batch file will just by pass and copy to whatever is turned on. But the VBA is stopped with the Debug as soon as hits a computer/external hard drive not turned on.
Here are two of the copy lines, one going to an external drive and one going to a computer on the network. I would really like to get this working but to do so I have to get around the problem of one or more computers being turned off. I am assuming (hoping
) there is some sort of IF or similar that will recognise a computer is not turned on and then move to the next copy line.
FileCopy "C:\ViperResides\Viper.mdb", "h:\ViperDailyj\Viper " + Format(Now, "YYYY-MM-DD") + " " & Format(Now, "hh-mm-ss") + ".mdb"
FileCopy "C:\ViperResides\Viper.mdb", "\\MikeCompaq\ViperDaily\Viper " + Format(Now, "YYYY-MM-DD") + " " & Format(Now, "hh-mm-ss") + ".mdb"
I do can everything with the date/time stamp and copying across network to other computers and external hatd drives. However, unlike the batch file the VBA I am using only works if the other computers and/or external hard drives are turned. The batch file will just by pass and copy to whatever is turned on. But the VBA is stopped with the Debug as soon as hits a computer/external hard drive not turned on.
Here are two of the copy lines, one going to an external drive and one going to a computer on the network. I would really like to get this working but to do so I have to get around the problem of one or more computers being turned off. I am assuming (hoping

FileCopy "C:\ViperResides\Viper.mdb", "h:\ViperDailyj\Viper " + Format(Now, "YYYY-MM-DD") + " " & Format(Now, "hh-mm-ss") + ".mdb"
FileCopy "C:\ViperResides\Viper.mdb", "\\MikeCompaq\ViperDaily\Viper " + Format(Now, "YYYY-MM-DD") + " " & Format(Now, "hh-mm-ss") + ".mdb"