TIP: Click on subject to list as thread! ANSI
echo: quik_bas
to: OLE HEJLSKOV
from: PAT PRIDGEN
date: 1998-02-18 06:10:00
subject: help!

[In a message from Ole Hejlskov to All ]
 OH> Is there a command in Qucikbasic 4.5 that gives you the current
 OH> disk-space? 
Not a command, but...by using Call Interrupt you can get it the
informations.
From Ralf's Interrupt List;
INT 21 - DOS 2+ - GET FREE DISK SPACE                                         
  
        AH = 36h                                                              
  
        DL = drive number (00h = default, 01h = A:, etc)                      
  
Return: AX = FFFFh if invalid drive                                           
  
        else                                                                  
  
            AX = sectors per cluster                                          
  
            BX = number of free clusters                                      
  
            CX = bytes per sector                                             
  
            DX = total clusters on drive                                      
  
Notes:  free space on drive in bytes is AX * BX * CX                          
  
        total space on drive in bytes is AX * CX * DX                         
  
        "lost clusters" are considered to be in use                           
  
        according to Dave Williams' MS-DOS reference, the value in DX is      
  
          incorrect for non-default drives after ASSIGN is run                
  
        this function does not return proper results on CD-ROMs;              
  
          use AX=4402h"CD-ROM" instead                                        
  
        (FAT32 drive) the reported total and free space are limited to 2G-32K 
  
          should they exceed that value                                       
  
SeeAlso: AH=1Bh,AH=1Ch,AX=4402h"CD-ROM",AX=7303h
                                
.                         pat.pridgen@svis.org
.                          La Grande, Oregon
*SignIt 2.x #001* 
... "The ANY key - that big long thing on the bottom of the keyboard."
___ Blue Wave/DOS v2.30
--- Maximus 2.02
---------------
* Origin: THE LOFT in Auburn IN 219-925-5524 & 238-3222 HST/V34+ (1:236/7)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.