salska
Messages postés20Date d'inscriptionvendredi 11 juillet 2003StatutMembreDernière intervention 4 mai 2006
-
19 mai 2005 à 12:13
salska
Messages postés20Date d'inscriptionvendredi 11 juillet 2003StatutMembreDernière intervention 4 mai 2006
-
31 mai 2005 à 12:09
Hello world ,
J ai ce script qui devrai effacer normalement le dossier test et tout ce qu il contient
I = 0
While not I = 1
Select case (I)
case 0 strComputer = "xxxxx"
End select
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\" & strComputer & "\root\cimv2")
Set colFolders = objWMIService.ExecQuery _
("Select * from Win32_Directory where Name = 'C:\\Documents and Settings\\test'")
For Each objFolder in colFolders
errResults = objFolder.Delete
Wscript.Echo errResults
Next
I = I+ 1
wend
Le probleme est le suivant:
- Lorsque le dossier est vide ca marche
-lorsque le dossier contient des fichiers ca marche
-Mais lorsque le dossier contient un ou d autres dossiers ca marche plus (erreur 14)
J aimerai egallement trouver tout les code d erreur avec leurs descriptions si quelqu un sais ou je peux trouver ca