PC Review


Reply
Thread Tools Rate Thread

How to find out the free DiskSpace

 
 
=?Utf-8?B?RG9jRGVhdGg=?=
Guest
Posts: n/a
 
      5th Oct 2005
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
 
Reply With Quote
 
 
 
 
Sergey Bogdanov
Guest
Posts: n/a
 
      5th Oct 2005
The OpenNETCF sources are available, see how the method
OpenNETCF.IO.StorageCard.GetDiskFreeSpace was implemented here:
http://vault.netcf.tv/VaultService/V...dedversions=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

 
Reply With Quote
 
Sergey Bogdanov
Guest
Posts: n/a
 
      5th Oct 2005
.... 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

 
Reply With Quote
 
=?Utf-8?B?RG9jRGVhdGg=?=
Guest
Posts: n/a
 
      5th Oct 2005
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

>

 
Reply With Quote
 
=?Utf-8?B?RG9jRGVhdGg=?=
Guest
Posts: n/a
 
      5th Oct 2005
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

> >

 
Reply With Quote
 
=?Utf-8?B?RG9jRGVhdGg=?=
Guest
Posts: n/a
 
      5th Oct 2005
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
> > >

 
Reply With Quote
 
Sergey Bogdanov
Guest
Posts: n/a
 
      5th Oct 2005
You can find almost all functions in MSDN, e.g. GetDiskFreeSpaceEx:
http://msdn.microsoft.com/library/de...reespaceex.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
>>>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can I run XP with 200mb of free diskspace and virtual mem. turned off? indessen@hotmail.de Windows XP General 6 19th Sep 2006 06:50 AM
check free diskspace =?Utf-8?B?QmlrZXNhdmFnZQ==?= Windows XP Help 1 8th Jun 2006 12:14 PM
Show free diskspace in Explorer dries bessels Windows XP Customization 10 1st Apr 2004 03:25 AM
Re: [Humor] Free diskspace to delete files Jason Tsang Windows XP General 1 31st Dec 2003 02:04 AM
incorrect free diskspace reported in xp Windows XP General 1 1st Nov 2003 09:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:35 PM.