Bonjour je suis un debutant en batch, j'ai cree un batch demarrant des logiciel de nettoyage ... malheuresement il ne fonctionne pas bien
voici mon batch si vous voyez des probleme sa serais cool de me corriger et si vous avez le temps m'expliquer aussi, voici mon batch :
Code Batch : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131 @ECHO OFF REM Debut du Batch :CHECKPERMISSION ATTRIB %windir%\system32 -h | FINDSTR /I "system32" >nul IF %ERRORLEVEL% NEQ 1 ( ECHO. ECHO Ce script doit etre lance en Administrateur. ECHO. GOTO finish ) goto intro :finish pause exit :finish ! echo Le batch est fini pause exit :intro echo ----------------------------------------------------------------------------------------- echo ----------------------------------------------------------------------------------------- echo Batch de Nettoyage by Nenatik echo ----------------------------------------------------------------------------------------- echo ----------------------------------------------------------------------------------------- cd.. cd.. cd Users cd guill cd Desktop cd Batch cd "Application pour le batch" goto ccleaner REM !!! DEMARRAGE DU TEST DE CCLEANER !!! :ccleaner echo. echo ----------------------------------------------------------------------------------------- echo Nettoyage par CCleaner ... echo ----------------------------------------------------------------------------------------- cd ccleaner ccleaner.exe /AUTO > nul 2>&1 ping 127.0.0.1 -n 190 > nul 2>&1 goto malwarebytes REM !!! DEMARRAGE DU TEST MALWAREBYTES !!! :malwarebytes echo. echo ----------------------------------------------------------------------------------------- echo Scan par Malwarebytes ... echo ----------------------------------------------------------------------------------------- cd.. cd Anti-Malware mbam.exe /fullauto > nul 2>&1 goto systemcare REM !!! DEMARRAGE DU ADVANCED SYSTEMCARE !!! :systemcare echo. echo ----------------------------------------------------------------------------------------- echo Nettoyage par Advanced SystemCare ... echo ----------------------------------------------------------------------------------------- cd.. cd "Advanced SystemCare" asc.exe /scanrepair > nul 2>&1 ping 127.0.0.1 -n 1920 > nul 2>&1 goto defrag REM !!! DEFRAG DES DISQUE DUR !!! :defrag echo. echo ----------------------------------------------------------------------------------------- echo Defragmentation de tout les disque dur ... echo ----------------------------------------------------------------------------------------- defrag /c > nul 2>&1 goto clean mgr REM !!! NETTOYAGE DU :clean mgr echo. echo ----------------------------------------------------------------------------------------- echo Nettoyage de tout les disque dur ... echo ----------------------------------------------------------------------------------------- cleanmgr /autoclean > nul 2>&1 ping 127.0.0.1 -n 400 > nul 2>&1 goto stinger :stinger echo. echo ----------------------------------------------------------------------------------------- echo Analyse par Stinger ... echo ----------------------------------------------------------------------------------------- cd.. cd Stinger stinger32.exe --SILENT --DELETE > nul 2>&1 ping 127.0.0.1 -n 75 > nul 2>&1 goto bleachbit :bleachbit echo. echo ----------------------------------------------------------------------------------------- echo Nettoyage par BleachBit ... echo ----------------------------------------------------------------------------------------- cd.. cd BleachBit bleachbit -c --preset > nul 2>&1 ping 127.0.0.1 -n 200 > nul 2>&1 goto usbcleanup :usbcleanup echo. echo ----------------------------------------------------------------------------------------- echo Nettoyage du UsbDriveCleanUp ... echo ----------------------------------------------------------------------------------------- cd .. cd UsbCleanUp DriveCleanupx64.exe -t -n > nul 2>&1 ping 127.0.0.1 -n 30 > nul 2>&1 goto kasperskyvirusremovaltool :kasperskyvirusremovaltool echo. echo ----------------------------------------------------------------------------------------- echo Analyse par KVRT ... echo ----------------------------------------------------------------------------------------- cd.. cd KasperskyVirusRemovalTool kvrt.exe -accepteula -adinsilent -silent -processlevel 2 -dontcryptsupportinfo goto finish !
Partager