473,397 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

GetDiskFreeSpace

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
Nov 21 '05 #1
4 3084
"Xavier Valdés" <no*****@teleline.es> schrieb:
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').

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #2
"Xavier Valdés" <no*****@teleline.es> schrieb:
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').

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #3
I'm having the same value.... Max. 5.28 GB!!!! (inspite I have more than
128GB free!!!!)

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> escribió en el mensaje
news:e%****************@TK2MSFTNGP09.phx.gbl...
"Xavier Valdés" <no*****@teleline.es> schrieb:
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').

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #4
I'm having the same value.... Max. 5.28 GB!!!! (inspite I have more than
128GB free!!!!)

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> escribió en el mensaje
news:e%****************@TK2MSFTNGP09.phx.gbl...
"Xavier Valdés" <no*****@teleline.es> schrieb:
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').

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Michael Peuser | last post by:
There is a portable way of reading directories os.listdir in conjunction with os.stat and a little help from os.path.split and os.path.join Though using os.stat gives programs a somewhat clumbsy...
2
by: Sagar Choudhary | last post by:
Is there any exception related to disk space ? If not how else can we check the availability of the disk space in a c++ program. I know ostream helps a bit. When we try to open a file when there's...
1
by: David | last post by:
I am attempting to use the GetDiskFreeSpaceExA api to get the disksapce for a drive. When I call the function from C#, I receive an OK rc but the space is for my default drive "c:". No matter...
4
by: andrewcw | last post by:
If I have a drive letter I can get the the drive info from WMI like this string ltrDr=theSharePath.Substring(0,2); // must be in form of "E: string wackyQuery...
1
by: ThunderMusic | last post by:
Hi, I found an equivalent to the API Function GetDiskFreeSpace on this page: http://msdn.microsoft.com/library/en-us/dndotnet/html/win32map.asp?frame=true#win32map_filesystemfunctions But I...
8
by: John | last post by:
I'm new and I don't know which forum this should go into, so please forgive me in advance if I have inadvertantly placed this question. I don't know if it's a Microsoft question or a generic C++...
14
by: shamirza | last post by:
Question Do ActiveX DLLs made in VB still need the VB runtimes on the machine? ________________________________________ Answer In a word, Yes. Visual Basic does not support what is known...
10
by: kevinliu23 | last post by:
HI, I am new to Python and wanted to know how to check for the remaining disk space on my Windows machine using Python? I was thinking of using the command line "dir" and trying to extract the...
4
by: kaisersose1995 | last post by:
Hi, I'm trying to get Novell Netware information using vba into my access database and have no idea how to progress. Basically when i right click the properties on my computer the free space of a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.