Category : BASIC Source Code
Archive   : QBFAQR01.ZIP
Filename : CMDLINE.BAS
' original case.
'
' Author: Christy Gemmell
' Date: 26/3/1992
'
' $DYNAMIC
'
' Change the following line to '$INCLUDE: 'QB.BI' for QB 4.5
' $INCLUDE: 'QBX.BI'
'
DIM SHARED InRegs AS RegType, OutRegs AS RegType
InRegs.ax = &H5100
INTERRUPT &H21, InRegs, OutRegs
PSP% = OutRegs.bx: OffSet% = &H80
DEF SEG = PSP%
CmdLen% = PEEK(OffSet%)
Cmd$ = ""
FOR I% = 1 TO CmdLen%
Cmd$ = Cmd$ + CHR$(PEEK(OffSet% + I%))
NEXT I%
PRINT Cmd$
END
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/