Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.visual-basic > #19066
| X-Received | by 10.36.82.206 with SMTP id d197mr195358itb.27.1498056668846; Wed, 21 Jun 2017 07:51:08 -0700 (PDT) |
|---|---|
| X-Received | by 10.157.15.209 with SMTP id m17mr548900otd.6.1498056668791; Wed, 21 Jun 2017 07:51:08 -0700 (PDT) |
| Path | csiph.com!feeder.erje.net!2.us.feeder.erje.net!weretis.net!feeder6.news.weretis.net!news.glorb.com!185no312170itv.0!news-out.google.com!s132ni813itb.0!nntp.google.com!185no312164itv.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | it.comp.lang.visual-basic |
| Date | Wed, 21 Jun 2017 07:51:08 -0700 (PDT) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=213.215.169.20; posting-account=yvxj_woAAABxrxq8XihQzP-tWUWpycQc |
| NNTP-Posting-Host | 213.215.169.20 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <45cdeed6-8d63-4465-a79d-8cfa9e8343e0@googlegroups.com> (permalink) |
| Subject | Ricerca files in una cartella |
| From | Marco75 <marcoporzi75@gmail.com> |
| Injection-Date | Wed, 21 Jun 2017 14:51:08 +0000 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | quoted-printable |
| Xref | csiph.com it.comp.lang.visual-basic:19066 |
Show key headers only | View raw
Ciao,
con questo codice (Visual Studio 2010) vedo se ci sono dei files in una cartella:
Dim counter = My.Computer.FileSystem.GetFiles("C:\MiaCartella\")
If counter.count > 0 Then
frmAlert.Show()
Else
End If
Se volessi cercare solo file con una specifica parola all'interno come faccio?
Ho provato così:
Dim counter = My.Computer.FileSystem.GetFiles("C:\MiaCartella\", "*Verde*.jpg")
If counter.count > 0 Then
frmAlert.Show()
Else
End If
ma mi va in errore... In pratica il nome file deve contenere una parola ma potrei anche avere la necessità di cercarne di più
es: "C:\MiaCartella\", "*Verde*.jpg" AND "*Giallo*.jpg"
Infine, nella maschera che si apre in caso ci siano files, una listbox deve mostrare solo i files con il nome contenuto
grazie
Marco
Back to it.comp.lang.visual-basic | Previous | Next — 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