Re: FAT32 HELP!
Hey Bernie,
If you are trying to get the free space for a given drive below is what MSDN
says about the subject.
************* MSDN snippet ****************************
Int 21h Function 7303h Get_ExtFreeSpace (FAT32)
[Windows 95 only.]
Returns the total disk space and the free disk space.
mov dx, seg Buffer
mov es, dx
mov di, offset Buffer ;See below
mov es:[di].ExtGetDskFreSpcStruc.ExtFree_Level, ExpectLevel
mov cx, BufferSize ;See below
mov dx, seg DriveName ;See below
mov ds, dx
mov dx, offset DriveName ;See below
mov ax, 7303h ;Get_ExtFreeSpace
int 21h
jc error_handler ;carry set means error
Parameters
Buffer
The address of the buffer at ES:DI that will receive the disk space
information.
BufferSize
The size (in bytes) of the buffer.
DriveName
The address of a null terminated string at DS:DX. In real mode, this must be
in standard form ("C:\"). In Windows, either the standard name or a
universal naming convention form ("\\Server\Share") is acceptable.
Return Values
Clears the carry flag and returns the total disk space and the free disk
space of the specified drive, in the form of an ExtGetDskFreSpcStruc (FAT32)
structure, to a buffer at ES:DI. It is recommended to initialize the buffer
to the level value the application expects to receive.
Remarks
When calling this function with DeviceIoControl, the dwloControlCode
parameter must be set to VWIN32_DIOC_DOS_IOCTL (defined as 6 in VWIN32.H).
For more information on this, see Using VWIN32 to Carry Out MS-DOS
Functions.
************* End MSDN snippet ****************************
Thanks,
JKinsey
-----Original Message-----
From: Euphoria Programming for MS-DOS
[mailto:EUPHORIA at LISTSERV.MUOHIO.EDU]On Behalf Of Bernie Ryan
Sent: Friday, August 20, 1999 9:46 AM
To: EUPHORIA at LISTSERV.MUOHIO.EDU
Subject: Re: FAT32 HELP!
Wes:
It doesn't work using DOS COMMAND PROMPT MODE,
Yet it works in SAFE MODE DOS COMMAND PROMPT.
I think the causeway extender may operate different depending if
virtual drivers are loaded. The reason I say this is that DOS can still
use the Directory command.
Bernie
|
Not Categorized, Please Help
|
|