Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.visual-basic > #19611
| X-Received | by 2002:a0c:9254:: with SMTP id 20mr5375049qvz.62.1554888152691; Wed, 10 Apr 2019 02:22:32 -0700 (PDT) |
|---|---|
| X-Received | by 2002:ac8:2eec:: with SMTP id i41mr34870313qta.81.1554888152494; Wed, 10 Apr 2019 02:22:32 -0700 (PDT) |
| Path | csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!t9no1072140qtn.0!news-out.google.com!i54ni560qte.0!nntp.google.com!t9no1072134qtn.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | it.comp.lang.visual-basic |
| Date | Wed, 10 Apr 2019 02:22:32 -0700 (PDT) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=79.135.44.148; posting-account=MrDGtQoAAAAYIF1Mv4Ed7qZTsa_JBBhd |
| NNTP-Posting-Host | 79.135.44.148 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <d5df8121-c968-45f6-b7ba-8ee918143b29@googlegroups.com> (permalink) |
| Subject | file di testo con elenco immagini |
| From | NickBi <nickbi78@gmail.com> |
| Injection-Date | Wed, 10 Apr 2019 09:22:32 +0000 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | quoted-printable |
| Lines | 25 |
| Xref | csiph.com it.comp.lang.visual-basic:19611 |
Show key headers only | View raw
Buongiorno a tutti,
ho un file batch che generea in lista.txt tutti i percorsi le foto presenti in una cartella e relative sottocartelle (dir C:\miacartella\foto\*.jpg /b /on >C:\miacartella\foto\lista.txt)
l'ho tradotto in vb.net usando il seguente codice:
For Each foundFile As String In
My.Computer.FileSystem.GetFiles("C:\miacartella\foto\", FileIO.SearchOption.SearchAllSubDirectories, "*.jpg")
foundFile = foundFile & vbCrLf
My.Computer.FileSystem.WriteAllText("C:\miacartella\foto\LISTA.TXT", foundFile, True)
Next
funziona ma ci mette troppo tempo rispetto al file batch (20 secondi per il batch contro oltre il minuto per l'eseguibile vb.net)
E' un problema di metodo o si può cambiare codice migliorando le prestazioni?
grazie in anticipo
Nico
Back to it.comp.lang.visual-basic | Previous | Next — Next in thread | Find similar
file di testo con elenco immagini NickBi <nickbi78@gmail.com> - 2019-04-10 02:22 -0700
Re: file di testo con elenco immagini Luca D <antaniserse@yahoo.it> - 2019-04-13 23:54 -0700
Re: file di testo con elenco immagini NickBi <nickbi78@gmail.com> - 2019-04-19 02:52 -0700
csiph-web