| View previous topic :: View next topic |
| Author |
Message |
newsgroup.borland.com Guest
|
Posted: Sun Apr 23, 2006 9:03 pm Post subject: How can I get the Total Space and Free Space available from |
|
|
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
|
Posted: Mon Apr 24, 2006 1:03 am Post subject: Re: How can I get the Total Space and Free Space available f |
|
|
"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
|
Posted: Mon Apr 24, 2006 8:03 pm Post subject: Re: How can I get the Total Space and Free Space available f |
|
|
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
|
Posted: Tue Apr 25, 2006 4:03 am Post subject: Re: How can I get the Total Space and Free Space available f |
|
|
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
|
Posted: Wed Apr 26, 2006 10:03 am Post subject: Re: How can I get the Total Space and Free Space available f |
|
|
"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 |
|
 |
|