Category : BASIC Source Code
Archive   : PBC30B.ZIP
Filename : SETLABEL.BAS

 
Output of file : SETLABEL.BAS contained in archive : PBC30B.ZIP
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1994 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+

DECLARE FUNCTION GetDrive$ ()
DECLARE SUB GetSub1 (Drive$, SubDir$, SubDirLen%, ErrCode%)
DECLARE SUB SetSub (Subdir$, ErrCode%)

DECLARE SUB SetLabel00 (Drive$, Label$, ErrCode%)
DECLARE SUB SetLabel01 (Drive$, ErrCode%)

SUB SetLabel (Drive$, Label$, ErrCode%)
IF INSTR(Label$, "?") OR INSTR(Label$, "*") THEN
ErrCode% = -1
ELSE
IF LEN(Drive$) THEN
D$ = Drive$
ELSE
D$ = GetDrive$
END IF
CurSub$ = SPACE$(80)
GetSub1 D$, CurSub$, CurSubLen%, ErrCode%
IF ErrCode% = 0 THEN
CurSub$ = LEFT$(CurSub$, CurSubLen%)
SetSub D$ + ":\", ErrCode%
IF ErrCode% = 0 THEN
IF LEN(Label$) THEN
Lab$ = LEFT$(Label$ + SPACE$(11), 11)
SetLabel00 D$, Lab$, ErrCode%
ELSE
SetLabel01 D$, ErrCode%
END IF
SetSub D$ + ":" + CurSub$, ErrC%
ErrCode% = ErrCode% OR ErrC%
END IF
END IF
END IF
END SUB


  3 Responses to “Category : BASIC Source Code
Archive   : PBC30B.ZIP
Filename : SETLABEL.BAS

  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/