BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I get the Total Space and Free Space available from

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
newsgroup.borland.com
Guest





PostPosted: Sun Apr 23, 2006 9:03 pm    Post subject: How can I get the Total Space and Free Space available from Reply with quote



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
Back to top
Mark Jacobs
Guest





PostPosted: Mon Apr 24, 2006 1:03 am    Post subject: Re: How can I get the Total Space and Free Space available f Reply with quote



"newsgroup.borland.com" <Johannes.Wierer (AT) web (DOT) de> wrote in message
news:444be04a$1 (AT) newsgroups (DOT) borland.com...
Quote:
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
Back to top
Johannes Wierer
Guest





PostPosted: Mon Apr 24, 2006 8:03 pm    Post subject: Re: How can I get the Total Space and Free Space available f Reply with quote



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 (AT) newsgroups (DOT) borland.com...
Quote:
"newsgroup.borland.com" <Johannes.Wierer (AT) web (DOT) de> wrote in message
news:444be04a$1 (AT) newsgroups (DOT) 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
Back to top
Bob Gonder
Guest





PostPosted: Tue Apr 25, 2006 4:03 am    Post subject: Re: How can I get the Total Space and Free Space available f Reply with quote

Johannes Wierer wrote:

Quote:
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
Back to top
Mark Jacobs
Guest





PostPosted: Wed Apr 26, 2006 10:03 am    Post subject: Re: How can I get the Total Space and Free Space available f Reply with quote

"Johannes Wierer" <Johannes.Wierer (AT) web (DOT) de> wrote in message
news:444d1d93$1 (AT) newsgroups (DOT) borland.com...
Quote:
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.