Salve gente.
Devo leggere il nome di tutti i files in una directory e scriverli in un file txt.
Dritta?![]()
Salve gente.
Devo leggere il nome di tutti i files in una directory e scriverli in un file txt.
Dritta?![]()
Ciaocodice:x = "c:\cartella\*.txt" y = Dir(x) If y = "" Then MsgBox "Percorso errato", vbInformation, "ATTENZIONE" End If Do Until y = "" Open "c:\xx.txt" For Append As #1 Print #1, y 'oppure se vuoi percorso completo + mome 'Print #1,"c:\cartella\" & y Close #1 y = Dir Loop
Oppure usi un oggetto FSO ...
Grazie Bro'
Grazie Bro'