How to find out the free DiskSpace

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Ok, whats the Login and the Password for this Page, or did you have another
Page?

best regards Benjamin

Sergey Bogdanov said:
.... forgot this:

u/p: guest/guest


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

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
 
Ok, thanks a lot. Try this out.

best regards Benjamin

DocDeath said:
Ok, whats the Login and the Password for this Page, or did you have another
Page?

best regards Benjamin

Sergey Bogdanov said:
.... forgot this:

u/p: guest/guest


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

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
 
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 said:
Ok, thanks a lot. Try this out.

best regards Benjamin

DocDeath said:
Ok, whats the Login and the Password for this Page, or did you have another
Page?

best regards Benjamin

Sergey Bogdanov said:
.... 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
 
You can find almost all functions in MSDN, e.g. GetDiskFreeSpaceEx:
http://msdn.microsoft.com/library/d.../wcedata5/html/wce50lrfgetdiskfreespaceex.asp


--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

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





:

Ok, thanks a lot. Try this out.

best regards Benjamin

:

Ok, whats the Login and the Password for this Page, or did you have another
Page?

best regards Benjamin

:


.... 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
 
Back
Top