home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
DISKINFO.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
2KB
|
58 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME DISKINFO.DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
$INCLUDE "DAS-NB02.INC"
COLOR 7,0
CLS
? "┌────────────────────────────────────────────────────────────────────────
? "│ fDiskFree& (SEG Drive$) free disk space on Drive$
? "│ fDiskSize& (SEG Drive$) total disk size of Drive$
? "├────────────────────────────────────────────────────────────────────────
? "│ Pretty simple!
? "└────────────────────────────────────────────────────────────────────────
DriveSpec$ = "C:\DOS\*.*"
M$ = " #,###,###,### bytes"
PRINT "DriveSpec$ = "; DriveSpec$
PRINT
PRINT USING "The drive is can hold" + M$ ; fDiskSize&( DriveSpec$ )
PRINT USING "There are" + M$ + " free" ; fDiskFree&( DriveSpec$ )
PRINT
PRINT
DriveSpec$ = ""
PRINT "DriveSpec$ = NULL for current drive"
PRINT
PRINT USING "The drive is can hold" + M$ ; fDiskSize&( DriveSpec$ )
PRINT USING "There are" + M$ + " free" ; fDiskFree&( DriveSpec$ )
PRINT
FOR C? = 65 TO 80
D$ = CHR$(C?)
IF fIsDrive%( D$ ) = 0 THEN EXIT FOR
PRINT "DRIVE "; D$;
S& = fDiskSize&( D$ )
IF S& > 0 THEN
F& = fDiskFree&( D$ )
PRINT USING M$ + " with" + M$ + " free"; S&,F&
ELSE
PRINT " is present but not ready."
END IF
NEXT