I still want to get the name of the storage card with visual basic commands
for the pocket pc

Is this not possible to do with DirectoryInfo or so?

Anyone simple code suggestions?

Thanks,
Hans

Re: Name of storage card by r_z_aret

r_z_aret
Tue Oct 24 16:09:46 CDT 2006

On Tue, 24 Oct 2006 18:14:49 +0200, "Hans" <info@tct.nl> wrote:

>I still want to get the name of the storage card with visual basic commands
>for the pocket pc

This seems like a continuation of your thread called "GetFullPath of
storage card". So I think you really should have continued in that
thread, with at least some info about why you didn't weren't satisfied
by the last answer there. Or at least a clear reference so we know how
this thread relates to that one. Are you having trouble using
P/Invoke? Are you having trouble finding C/C++ code to invoke?


>
>Is this not possible to do with DirectoryInfo or so?

I just used google (http://groups.google.com/advanced_group_search) to
look up
directoryinfo
in this newsgroup and got 7 hits. I took a quick look and am pretty
sure I saw some VB code you can copy.


>
>Anyone simple code suggestions?
>
>Thanks,
>Hans
>

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com

Re: Name of storage card by Hans

Hans
Wed Oct 25 01:46:19 CDT 2006

I need complete code and yes I don't understand those complex issues like
P/Invoke. Isn't there a simple VB code string?

Hans

<r_z_aret@pen_fact.com> schreef in bericht
news:1cusj21e33kms52hdue1sbs7h3lmpjncdp@4ax.com...
> On Tue, 24 Oct 2006 18:14:49 +0200, "Hans" <info@tct.nl> wrote:
>
>>I still want to get the name of the storage card with visual basic
>>commands
>>for the pocket pc
>
> This seems like a continuation of your thread called "GetFullPath of
> storage card". So I think you really should have continued in that
> thread, with at least some info about why you didn't weren't satisfied
> by the last answer there. Or at least a clear reference so we know how
> this thread relates to that one. Are you having trouble using
> P/Invoke? Are you having trouble finding C/C++ code to invoke?
>
>
>>
>>Is this not possible to do with DirectoryInfo or so?
>
> I just used google (http://groups.google.com/advanced_group_search) to
> look up
> directoryinfo
> in this newsgroup and got 7 hits. I took a quick look and am pretty
> sure I saw some VB code you can copy.
>
>
>>
>>Anyone simple code suggestions?
>>
>>Thanks,
>>Hans
>>
>
> -----------------------------------------
> To reply to me, remove the underscores (_) from my email address (and
> please indicate which newsgroup and message).
>
> Robert E. Zaret, eMVP
> PenFact, Inc.
> 20 Park Plaza, Suite 478
> Boston, MA 02116
> www.penfact.com



Re: Name of storage card by Stefan

Stefan
Wed Oct 25 08:34:46 CDT 2006

Hi Hans,

"Hans" <info@tct.nl> schrieb im Newsbeitrag
news:453f0834$0$2025$ba620dc5@text.nova.planet.nl...
>I need complete code and yes I don't understand those complex issues like
>P/Invoke. Isn't there a simple VB code string?
>

my code used in Visual Studio.net :
You don't need PInvoke or coredll.dll, you have to serch für "temporary
Dir's"

Sub Locate_Flashdrives()



Dim checkFile As System.IO.DirectoryInfo

Dim attributeReader As System.IO.FileAttributes

For Each DirName As String In System.IO.Directory.GetDirectories("\")

checkFile = New System.IO.DirectoryInfo(DirName)

attributeReader = checkFile.Attributes

If (attributeReader And System.IO.FileAttributes.Temporary) > 0 Then

ListBox1.Items.Add(DirName)

End If

Next DirName

End Sub

Ciao

Stefan