Category : Files from Magazines
Archive   : VOL8N17.ZIP
Filename : HD2FLOPY.PRG

 
Output of file : HD2FLOPY.PRG contained in archive : VOL8N17.ZIP


*** HD2FLOPY.PRG
CLEAR
odbf=SPACE(30)
fdrive="A"
ndbf=SPACE(8)
@ 1,0 SAY "Backup which database?" GET odbf
@ 3,0 SAY "To which floppy drive?" GET fdrive
@ 5,0 SAY "Enter Backup filename:" GET ndbf
READ
odbf=TRIM(odbf)
ndbf=TRIM(ndbf)
fmess="Insert a blank, formatted disk in ";
+"Drive &fdrive, and press a key..."
IF READKEY()=12
RETURN
ENDIF
IF ndbf<=" "
? [No TARGET file]+CHR(7)
RETURN
ENDIF
IF FILE(odbf) .OR. FILE(odbf+".DBF")
USE &odbf
ELSE
? [No SOURCE file: "&odbf"]+CHR(7)
RETURN
ENDI

fdriven=ASC(UPPE(fdrive))-64
DO WHILE DISKSPACE(fdriven)<1
WAIT fmess
ENDDO

* Calc header size
STOR 0 TO fldno,header
DO WHILE "" fldno=fldno+1
ENDDO
header=32*fldno+35

* Calc # of floppies needed
floprecs=INT((DISKSPACE(fdriven)-header)/RECSIZE())
flopneed=INT((RECCOUNT())/floprecs)+1
makeflop="F"
DO WHILE makeflop$"Ff"
? STR(flopneed)+" Disks required. "
?? "Press to proceed."
WAIT "To format additional disks, insert ";
+"floppy and press " TO makeflop
IF makeflop$"Ff"
RUN FORMAT &fdrive:
ENDIF
ENDDO

sofar="0"
DO WHILE .NOT. EOF()
sofar=LTRIM(STR(VAL(sofar)+1))
COPY NEXT floprecs TO &fdrive:&ndbf..&sofar
IF .NOT. EOF()
SKIP
DO WHILE DISKSPACE(fdriven) WAIT fmess
ENDDO
ENDIF
ENDDO



  3 Responses to “Category : Files from Magazines
Archive   : VOL8N17.ZIP
Filename : HD2FLOPY.PRG

  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/