[arachne] Re: MODIFYING GLENN'S BURNBACK.ZIP

Arachne at FreeLists---The Arachne Fan Club!

To backup just drive H:

--- burn-h.bat ---
@ echo off
rem turn off echoing of each command

set TZ=-0400
rem set timezone ENV variable

rem nwcache.exe /u
rem unload nwcache.exe (OpenDos/Dr-Dos only)

if "%1"=="nozip" goto makeiso
if "%2"=="nozip" goto makeiso
if "%3"=="nozip" goto makeiso
rem if any of the 3 possible command line args was "nozip"
rem skip making the zip file

md i:\drive_h>nul
rem make the dir for holding the ZIP

del i:\drive_h\*.zip>nul
rem delete any old ZIP

zip.exe -9 -r i:\drive_h\drive_h.zip h:\*.*
rem make ZIP of drive H: using max compression
rem and recursing into all sub dirs
rem saving the dir structure in the ZIP

:makeiso
if "%1"=="noiso" goto burn
if "%2"=="noiso" goto burn
if "%3"=="noiso" goto burn
rem if any of the 3 possible command line args was "noiso"
rem skip making the ISO

del i:\*.iso>nul
rem delete the old ISO

make9660.exe -p -m i:\drive_h\ drive_h i:\drive_h.iso
rem make the new ISO showing the progress as it goes
rem and allowing punctuation in filenames other than underscores

:burn
addev.com aspi.sys
rem load the driver for the burner

if "%1"=="format" cdtools /format /id=0:1:0 /noconfirm
if "%2"=="format" cdtools /format /id=0:1:0 /noconfirm
if "%3"=="format" cdtools /format /id=0:1:0 /noconfirm
rem if any of the 3 possible command line args as "format"
rem format the CD-RW/DVD-RW disc

file2cd.exe i:\drive_h.iso /id=0:1:0 /noconfirm /nounderrun
rem burn the ISO to disc

deldev.com aspi.sys
rem unload the burner driver

del c:\aspi.log
rem delete the LOG file

goto end
rem that's it... we're done... goto the end of the batch file

Use the following 3 commands to determine the correct ID of your burner....
addev.com aspi.sys
cdtools.exe /devices
deldev.com aspi.sys
Now replace all occurences of '/id=0:1:0' above with the ID of your burner.

:end
___________________________________________________________________________

--
 http://www.glennmcc.org/
                  Arachne at FreeLists                  
-- Arachne, The Premier GPL Web Browser/Suite for DOS --

Other related posts: