ciao a tutti,
vorrei fare un ciclo che immetta in una lista l'elenco delle cartelle rpesenti nel disco c:
come posso fare?
grazie mille!!![]()
ciao a tutti,
vorrei fare un ciclo che immetta in una lista l'elenco delle cartelle rpesenti nel disco c:
come posso fare?
grazie mille!!![]()
::: Crepes Designer ::: http://www.mauriziobrevi.com
devi usare il comando Dir.
Ans.
grazie ans, mi faresti un esempio pratico?
::: Crepes Designer ::: http://www.mauriziobrevi.com
e l'help che è stato inventato a fare?
Ans.
speravo non fosse necessario dirlo ma non ho installato msdn quindi niente help, in queste condizioni programmare è un po più difficile, converrai anche tu, grazie lo stesso
::: Crepes Designer ::: http://www.mauriziobrevi.com
E' anche consultabile online msdn.
Direttamente da msdn online:
codice:MyPath = "c:\" ' Set the path. MyName = Dir(MyPath, vbDirectory) ' Retrieve the first entry. Do While MyName <> "" ' Start the loop. ' Use bitwise comparison to make sure MyName is a directory. If (GetAttr(MyPath & MyName) And vbDirectory) = vbDirectory Then ' Display entry only if it's a directory. Debug.Print MyName End If MyName = Dir() ' Get next entry. Loop
Ans.