home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
d
/
datasave.zip
/
DATASAVE.BAT
next >
Wrap
DOS Batch File
|
1993-01-26
|
2KB
|
79 lines
@echo off
@rem DataSave is a CADOC, (C)1993 Maritime Computer Services
@if "%1"=="/delon" goto off
@if "%1"=="/DELON" goto off
@if "%1"=="/show" goto show
@if "%1"=="/SHOW" goto show
@if "%1"=="/?" goto help
@echo+
@echo+
@echo DataSave 1.1 , Shareware "Erase Protect", (C)1993 Maritime Computer Services
@echo+
@echo Checking file size of DataSave archives...
@echo+
@echo Original Archived Ratio # of files in DataSave :
@pkzip -v c:\trashcan\datasave.mcs | find "% "
@if "%1"=="/destroy" goto daily
@if "%1"=="/DESTROY" goto daily
@if "%1"=="/Destroy" goto daily
@if "%2"=="/destroy" goto daily
@if "%2"=="/DESTROY" goto daily
@if "%2"=="/Destroy" goto daily
@ goto del
:daily
@echo Switch "/destroy" detectecd...
@echo Erasing DataSave Archive...
@erase c:\trashcan\datasave.mcs > nul
:del
doskey /reinstall > nul
doskey del=ds $1 > nul
@goto end
@echo Dos DEL Command : Disabled (Automatically Converted to DS command)
:show
@echo+
@echo Files currently available preserved in DataSave : File Name
@echo+
@echo ---------
pkzip -vd c:\trashcan\datasave.mcs | find "--w" | more
@goto end
:off
@echo+
@echo Dos DEL Command : Enabled (Will erase data. DS command must be used to archive).
doskey /reinstall > nul
@goto end
:help
@echo+
@echo+
@echo Syntax : Datasave [options]
@echo+
@echo Datasave alone redirects the DEL command and shows size of the DataSave archive
@echo+
@echo Options :
@echo+
@echo /delon del command is Enabled
@echo /destroy erases archive file (can be used daily, etc.)
@echo /show listing of all files contained in archive
@echo /? shows this help screen
@echo+
@echo ╔═══════════════════════════════════════════════════════════════════════════╗
@echo ║Used with the DS, UNDS, and DEL commands. Type DS "filename.ext" to remove║
@echo ║the file, and store it in the DataSave archive. The DOS DEL command will ║
@echo ║also do this, unless you enable the /delon switch. ERASE "filename.ext" ║
@echo ║will delete the file. UNDS "filename.ext" will restore a DataSaved file. ║
@echo ╚═══════════════════════════════════════════════════════════════════════════╝
@goto end
:end
@echo+
@echo Files Protected : All except for *.TMP and *.SWP extensions.