Ecco il VBS che sto cercando di usare:
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFolder ("C:\Documenti\Foto")
Se qualcuno mi spiega dove sto sbagliando mi fara'
un grande piacere.
Grazie anticipate e saluti a tutti.
Sergio
IMHO dipende proprio dagli attributi e dal sistema operativo
Ovviamente čper esempio XP non ti permette di cancellare
una cartelle che ritiene vitale (p.e. di sistema)
DeleteFolder Method
Deletes a specified folder and its contents.
object.DeleteFolder ( folderspec[, force] );
Arguments
object
Required. Always the name of a FileSystemObject.
folderspec
Required. The name of the folder to delete. The folderspec can contain wildcard characters in the last path component.
force
Optional. Boolean value that is true if folders with the read-only attribute set are to be deleted; false (default) if
they are not.
Potresti provare col force ma ATTENZIONE a memoria il .DeleteFolder
NON passa dal cestino
--
Fosco