PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
How to find out the free DiskSpace
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
How to find out the free DiskSpace
![]() |
How to find out the free DiskSpace |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
i want to know the free DiskSpace of my StorageCard. But the CF does not have the routines. Any Workaround with the normal CF? (without OpenNetCF) Thanks a lot Benjamin Wagner |
|
|
|
#2 |
|
Guest
Posts: n/a
|
The OpenNETCF sources are available, see how the method
OpenNETCF.IO.StorageCard.GetDiskFreeSpace was implemented here: http://vault.netcf.tv/VaultService/...udedversions=20 -- Sergey Bogdanov [.NET CF MVP, MCSD] http://www.sergeybogdanov.com DocDeath wrote: > Hi, > > i want to know the free DiskSpace of my StorageCard. But the CF does not > have the routines. Any Workaround with the normal CF? (without OpenNetCF) > > Thanks a lot Benjamin Wagner |
|
|
|
#3 |
|
Guest
Posts: n/a
|
.... forgot this:
u/p: guest/guest -- Sergey Bogdanov [.NET CF MVP, MCSD] http://www.sergeybogdanov.com DocDeath wrote: > Hi, > > i want to know the free DiskSpace of my StorageCard. But the CF does not > have the routines. Any Workaround with the normal CF? (without OpenNetCF) > > Thanks a lot Benjamin Wagner |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Ok, whats the Login and the Password for this Page, or did you have another
Page? best regards Benjamin "Sergey Bogdanov" wrote: > .... forgot this: > > u/p: guest/guest > > > -- > Sergey Bogdanov [.NET CF MVP, MCSD] > http://www.sergeybogdanov.com > > > DocDeath wrote: > > Hi, > > > > i want to know the free DiskSpace of my StorageCard. But the CF does not > > have the routines. Any Workaround with the normal CF? (without OpenNetCF) > > > > Thanks a lot Benjamin Wagner > |
|
|
|
#5 |
|
Guest
Posts: n/a
|
Ok, thanks a lot. Try this out.
best regards Benjamin "DocDeath" wrote: > Ok, whats the Login and the Password for this Page, or did you have another > Page? > > best regards Benjamin > > "Sergey Bogdanov" wrote: > > > .... forgot this: > > > > u/p: guest/guest > > > > > > -- > > Sergey Bogdanov [.NET CF MVP, MCSD] > > http://www.sergeybogdanov.com > > > > > > DocDeath wrote: > > > Hi, > > > > > > i want to know the free DiskSpace of my StorageCard. But the CF does not > > > have the routines. Any Workaround with the normal CF? (without OpenNetCF) > > > > > > Thanks a lot Benjamin Wagner > > |
|
|
|
#6 |
|
Guest
Posts: n/a
|
Ok, it works. Thanks a lot. Where can i get a documentation about the
Coredll.dll? For those who need it in VB.net (like me): Option Strict On Option Explicit On Imports System.Runtime.InteropServices Module SpezialFunktionen #Region " GetFreeSpace " <DllImport("coredll.dll")> Private Function GetDiskFreeSpaceEx( _ ByVal directoryName As String, _ ByRef freeBytesAvailable As Long, _ ByRef totalBytes As Long, _ ByRef totalFreeBytes As Long) As Boolean End Function Public Function GetFreeDiskSpace(ByVal directoryName As String) As Long Dim FreeBytesAvailable As Long Dim TotalBytes As Long Dim TotalFreeBytes As Long If GetDiskFreeSpaceEx(directoryName, FreeBytesAvailable, TotalBytes, TotalFreeBytes) Then Return FreeBytesAvailable Else Return Nothing End If End Function #End Region End Module best regards Benjamin Wagner "DocDeath" wrote: > Ok, thanks a lot. Try this out. > > best regards Benjamin > > "DocDeath" wrote: > > > Ok, whats the Login and the Password for this Page, or did you have another > > Page? > > > > best regards Benjamin > > > > "Sergey Bogdanov" wrote: > > > > > .... forgot this: > > > > > > u/p: guest/guest > > > > > > > > > -- > > > Sergey Bogdanov [.NET CF MVP, MCSD] > > > http://www.sergeybogdanov.com > > > > > > > > > DocDeath wrote: > > > > Hi, > > > > > > > > i want to know the free DiskSpace of my StorageCard. But the CF does not > > > > have the routines. Any Workaround with the normal CF? (without OpenNetCF) > > > > > > > > Thanks a lot Benjamin Wagner > > > |
|
|
|
#7 |
|
Guest
Posts: n/a
|
You can find almost all functions in MSDN, e.g. GetDiskFreeSpaceEx:
http://msdn.microsoft.com/library/d...freespaceex.asp -- Sergey Bogdanov [.NET CF MVP, MCSD] http://www.sergeybogdanov.com DocDeath wrote: > Ok, it works. Thanks a lot. Where can i get a documentation about the > Coredll.dll? > > For those who need it in VB.net (like me): > > Option Strict On > Option Explicit On > > Imports System.Runtime.InteropServices > > Module SpezialFunktionen > > #Region " GetFreeSpace " > > <DllImport("coredll.dll")> Private Function GetDiskFreeSpaceEx( _ > ByVal directoryName As String, _ > ByRef freeBytesAvailable As Long, _ > ByRef totalBytes As Long, _ > ByRef totalFreeBytes As Long) As Boolean > End Function > > Public Function GetFreeDiskSpace(ByVal directoryName As String) As Long > Dim FreeBytesAvailable As Long > Dim TotalBytes As Long > Dim TotalFreeBytes As Long > If GetDiskFreeSpaceEx(directoryName, FreeBytesAvailable, TotalBytes, > TotalFreeBytes) Then > Return FreeBytesAvailable > Else > Return Nothing > End If > End Function > > #End Region > > End Module > > best regards Benjamin Wagner > > > > > > "DocDeath" wrote: > > >>Ok, thanks a lot. Try this out. >> >>best regards Benjamin >> >>"DocDeath" wrote: >> >> >>>Ok, whats the Login and the Password for this Page, or did you have another >>>Page? >>> >>>best regards Benjamin >>> >>>"Sergey Bogdanov" wrote: >>> >>> >>>>.... forgot this: >>>> >>>>u/p: guest/guest >>>> >>>> >>>>-- >>>>Sergey Bogdanov [.NET CF MVP, MCSD] >>>>http://www.sergeybogdanov.com >>>> >>>> >>>>DocDeath wrote: >>>> >>>>>Hi, >>>>> >>>>>i want to know the free DiskSpace of my StorageCard. But the CF does not >>>>>have the routines. Any Workaround with the normal CF? (without OpenNetCF) >>>>> >>>>>Thanks a lot Benjamin Wagner >>>> |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

