Category : BASIC Source Code
Archive   : ISAMTB.ZIP
Filename : FILEXIST.TRB
DEF fnFileExists (FileSpec$)
FileSpec1$ = FileSpec$ + CHR$(0)
FileAttribute% = 0
REG 1, &H4E00
REG 3, FileAttribute%
SaveDS% = REG(8)
REG 8, (PEEK(1) * &H100! + PEEK(0)) ''and &H7FFF
VPFI% = VARPTR(FileSpec1$)
REG 4, (PEEK(VPFI% + 3) * &H100 + PEEK(VPFI%+2))
CALL INTERRUPT &H21
REG 8, SaveDS%
IF (REG(0) AND 1) = 0 THEN
fnFileExists = -1
ELSE
fnFileExists = 0
END IF
END DEF
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
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/