Category : C Source Code
Archive   : LSAM23.ZIP
Filename : BKUPDEMO.BAT

 
Output of file : BKUPDEMO.BAT contained in archive : LSAM23.ZIP
echo off
rem batch file to set required environ vars and run demo bkup.exe
cls
echo ..........................................................................
echo . %0 is a demo providing a simple example of the usage of LSAM
echo ..........................................................................
cd
echo . If the required files for this LSAM demo are NOT in the above direc-
echo . tory, hit CTL-C or CTL-BREAK and move them here to simplify things.
echo . When you are ready, restart this batch file. If this is NOT
echo . the case, please proceed. The required files are:
echo . SAMPLE.DAT SAMPLE.BIN SAMPLEB.BIN LSAM.RTL
echo . BKUP.EXE
echo ..........................................................................
pause
cls
rem NOTICE - If for some reason you have scattered these files,
rem insert 'd:\path' in environment vars below with demo
rem path information (i.e. where you dumped the demo files).
rem They should look similar to the following:
rem set input=d:\path\sample.bin
rem set output=d:\path\sampleb.bin
rem set lsamrtl=d:\path\lsam.rtl
rem set lsamixalloc=3
set input=\c\csc\sample.bin
set output=\c\csc\sampleb.bin
set lsamrtl=lsam.rtl
set lsamixalloc=3
set
echo .
echo . Note - environment set for BKUP demo:
echo . Required LSAM variables LSAMRTL and LSAMIXALLOC are set,
echo . and user variables 'INPUT' and 'OUTPUT' now point to the LSAM
echo . LSAM control files for SAMPLE.DAT and BKUP.DAT - SAMPLE.BIN
echo . and SAMPLEB.BIN - which contain all other required attri-
echo . bute information for input and output files for LSAM to
echo . process this backup.
echo .
pause
cls
del sample.i00 >nul
del bkup.dat >nul
del bkup.i00 >nul
echo .
echo . BKUP will now copy SAMPLE.DAT to BKUP.DAT (reorganized by key),
echo . and indexed by the keys specified in SAMPLEB.TXT.
echo .
pause
rem
rem command-line format:
rem bkup env.var(input parm file), env.var(output parm file)
rem
bkup input output
echo .
pause
cls
echo .
echo . About to reset environment to previous setting
echo .
pause
set input=
set output=
set lsamrtl=
set lsamixalloc=
set
echo .
echo . Environment reset. End of demo. Suggest inspecting input and output
echo . files w/Norton utilities or some other dump utility to see reorganized
echo . output index and data. Consult LSAM.DOC and demo source in BKUP.C,
echo . SAMPLE.TXT and SAMPLEB.TXT for additional details.
echo .
pause
cls


  3 Responses to “Category : C Source Code
Archive   : LSAM23.ZIP
Filename : BKUPDEMO.BAT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/