Re: dos batch programmer help!!
- From: "William J. Leary Jr." <Bill_Leary@xxxxxxx>
- Date: Fri, 21 Jul 2006 00:41:41 -0400
<assafm@xxxxxxxxx> wrote in message
news:1153437306.270687.79460@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In the company i work, we backup the server data to few external HD.
Every few days we change the hd and after two weeks, we get back to the
first hd and so on... the problem is that the secretary who responsible
to switch the hd always make mistakes and put the recent one. we want
to add a section to the batch file that check the volume serial number
of the external hd and make sure it is the one for backuping this week.
for example: this week i am using HD #1, and his serial number is
xxxx-xxxx.
if the secretary put a different number, it should write, "HD doesnt
match" or something...
is anyone know how to do this?
I solved this problem, but with a tape backup system, some years ago during a
consulting job.
However, I did it by writing a small program which left a flag file behind
which the batch file tested. Like this:
cls
echo Please install the backup tape
pause
testtape
if exist testtape.ok goto goodtape
if exist testtape.bad goto badtape
cls
echo ERROR ERROR ERROR
echo Problem with tape test procedure, contact administrator
pause
goto end
:badtape
cls
echo WRONG TAPE
echo You have the wrong tape installed
pause
goto end
:goodtape
: Backup procedure here
:end
- Bill
.
- References:
- dos batch programmer help!!
- From: assafm
- dos batch programmer help!!
- Prev by Date: Re: dos batch programmer help!!
- Next by Date: Re: you can now easily split large files into small by this
- Previous by thread: Re: dos batch programmer help!!
- Next by thread: Re: dos batch programmer help!!
- Index(es):
Relevant Pages
|