Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : NAN0304.ZIP
Filename : DRIVE.PRG

 
Output of file : DRIVE.PRG contained in archive : NAN0304.ZIP
* Function: CurDrive()
* Author: Steve Hillbourne
* Version: Clipper Summer '87
* Note(s): Returns the current drive letter using only
* Clipper source code.
*
* Copyright (c) 1988 Nantucket Corp.

FUNCTION CurDrive
PRIVATE drive, position, row, col
SET CURSOR OFF
row = ROW() && Save row.
col = COL() && Save column.

RUN VOL>drive.txt && Get the drive by saving
** the results of DOS's VOL
drive = MEMOREAD("drive.txt") && command to a file and
position = AT("d", drive) + 6 && extracting the drive letter.
drive = SUBSTR(drive, position, 1)

ERASE drive.txt && Cleanup.
SET CURSOR ON
@ row, col SAY "" && Restore cursor position.
RETURN (drive)


  3 Responses to “Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : NAN0304.ZIP
Filename : DRIVE.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/