Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.visual-basic > #19067
| Newsgroups | it.comp.lang.visual-basic |
|---|---|
| Date | 2017-06-21 08:09 -0700 |
| References | <45cdeed6-8d63-4465-a79d-8cfa9e8343e0@googlegroups.com> |
| Message-ID | <9cbe72b2-0327-4e9c-8426-690ee4b31f65@googlegroups.com> (permalink) |
| Subject | Re: Ricerca files in una cartella |
| From | Luca D <antaniserse@yahoo.it> |
I metodi che trovi a partire da 'My.xxx' sono spesso scorciatoie a funzioni più complete del framework .NET, e vale quasi sempre la pena fare riferimento direttamente a quelle; in questo caso le classi che trovi in 'System.IO' hanno quello che serve:
Dim di As New System.IO.DirectoryInfo("C:\MiaCartella\")
If di.Exists Then
Dim fi() As System.IO.FileInfo = di.GetFiles("*Verde*.jpg")
If fi.Length > 0 Then
frmAlert.Show()
Else
End If
End If
Back to it.comp.lang.visual-basic | Previous | Next — Previous in thread | Next in thread | Find similar
Ricerca files in una cartella Marco75 <marcoporzi75@gmail.com> - 2017-06-21 07:51 -0700
Re: Ricerca files in una cartella Luca D <antaniserse@yahoo.it> - 2017-06-21 08:09 -0700
Re: Ricerca files in una cartella Marco75 <marcoporzi75@gmail.com> - 2017-06-22 00:07 -0700
Re: Ricerca files in una cartella Marco75 <marcoporzi75@gmail.com> - 2017-06-22 01:27 -0700
Re: Ricerca files in una cartella Luca D <antaniserse@yahoo.it> - 2017-06-22 01:53 -0700
Re: Ricerca files in una cartella Marco75 <marcoporzi75@gmail.com> - 2017-06-22 02:06 -0700
Re: Ricerca files in una cartella Luca D <antaniserse@yahoo.it> - 2017-06-22 07:05 -0700
Re: Ricerca files in una cartella Marco75 <marcoporzi75@gmail.com> - 2017-06-22 07:14 -0700
Re:Ricerca files in una cartella Paperino <non_te@lo.dico.invalid> - 2017-06-21 18:12 +0200
csiph-web