GetDiskFreeSpace

  • Thread starter Thread starter Xavier Valdés
  • Start date Start date
X

Xavier Valdés

Hi all,

I wanted to catch freespace of a net resource (i.e. \\pc\resource) but
without
having >2GB problem... Anyone knows how to do that? In VB6 we had
LARGE_INTEGER type
to use with GetDiskFreeSpace api function but I don't know how to do that in
VB.NET (and I don't
know if it's the easiest way in .net). By the way: I DO NOT WANT TO MAP UNIT
so I would like
to know \\pc\resource 's available space (not z:).
Thanks a lot,
Xavier Valdés
 
Xavier Valdés said:
I wanted to catch freespace of a net resource (i.e. \\pc\resource) but
without
having >2GB problem... Anyone knows how to do that? In VB6 we had
LARGE_INTEGER type
to use with GetDiskFreeSpace

I think you refer to 'GetDiskFreeSpaceEx'. You can declare the parameters
as 'Int64' (a.k.a. 'Long').
 
I'm having the same value.... Max. 5.28 GB!!!! (inspite I have more than
128GB free!!!!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top