🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
5 messages
5 total messages Started by newsgroup.borland.com Sun, 23 Apr 2006 20:15
How can I get the Total Space and Free Space available from a "mounted" volume??
#3871
Author: newsgroup.borland.com
Date: Sun, 23 Apr 2006 20:15
10 lines
1169 bytes
Hi!

I have "mounted" a partition into the folder: c:\bigspace160\
Drive C is a NTFS volume.
... so the partition has no drive letter.
How can I find out the free and total space available?

Thanks

Johannes 
Re: How can I get the Total Space and Free Space available from a "mounted" volume??
#3872
Author: Mark Jacobs
Date: Mon, 24 Apr 2006 00:13
12 lines
1512 bytes
"newsgroup.borland.com" <Johannes.Wierer@web.de> wrote in message 
news:444be04a$1@newsgroups.borland.com...
> I have "mounted" a partition into the folder: c:\bigspace160\
> Drive C is a NTFS volume.
> ... so the partition has no drive letter.
> How can I find out the free and total space available?

ShowMessage("Size "+AnsiString(DiskSize(0))+"  Free 
"+AnsiString(DiskFree(0)));
-- 
Mark Jacobs
http://jacobsm.com 
Re: How can I get the Total Space and Free Space available from a "mounted" volume??
#3790
Author: Johannes Wierer
Date: Mon, 24 Apr 2006 18:49
23 lines
1848 bytes
Thanks for your quick answer!

But this is not I what I wanted.
The Drive/Partition has no Drive Letter assigned.
It is just mounted in the "BIGSPACE160" folder (NTFS)

Johannes

"Mark Jacobs" <www.jacobsm.com/mjmsg.htm?Borland Newsgroup> schrieb im 
Newsbeitrag news:444c183b$1@newsgroups.borland.com...
> "newsgroup.borland.com" <Johannes.Wierer@web.de> wrote in message 
> news:444be04a$1@newsgroups.borland.com...
>> I have "mounted" a partition into the folder: c:\bigspace160\
>> Drive C is a NTFS volume.
>> ... so the partition has no drive letter.
>> How can I find out the free and total space available?
>
> ShowMessage("Size "+AnsiString(DiskSize(0))+"  Free 
> "+AnsiString(DiskFree(0)));
> -- 
> Mark Jacobs
> http://jacobsm.com
> 
Re: How can I get the Total Space and Free Space available from a "mounted" volume??
#3797
Author: Bob Gonder
Date: Tue, 25 Apr 2006 03:21
12 lines
1527 bytes
Johannes Wierer wrote:

>But this is not I what I wanted.
>>> I have "mounted" a partition into the folder: c:\bigspace160\

Might help if you mentioned how you were "mounting" the partition,
since not many people do such daft things.

I assume you are using mountvol.exe

Have you tried GetDiskFreeSpaceEx() ?
The root would be c:\bigspace160
Re: How can I get the Total Space and Free Space available from a "mounted" volume??
#3813
Author: Mark Jacobs
Date: Wed, 26 Apr 2006 09:05
14 lines
1656 bytes
"Johannes Wierer" <Johannes.Wierer@web.de> wrote in message 
news:444d1d93$1@newsgroups.borland.com...
> Thanks for your quick answer!
>
> But this is not I what I wanted.
> The Drive/Partition has no Drive Letter assigned.
> It is just mounted in the "BIGSPACE160" folder (NTFS)

Set this as the current path, and then call
ShowMessage("Size "+AnsiString(DiskSize(0))+
                "  Free "+AnsiString(DiskFree(0)));

Mark Jacobs
http://jacobsm.com
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads