IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Scripts/Batch Discussion :

Aide Pour mon batch [Batch]


Sujet :

Scripts/Batch

  1. #1
    Futur Membre du Club
    Homme Profil pro
    etudiant
    Inscrit en
    Juillet 2019
    Messages
    6
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : etudiant
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Juillet 2019
    Messages : 6
    Points : 5
    Points
    5
    Par défaut Aide Pour mon batch
    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 !

  2. #2
    Membre éprouvé
    Homme Profil pro
    Développeur .NET en devenir
    Inscrit en
    Août 2017
    Messages
    546
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur .NET en devenir
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Août 2017
    Messages : 546
    Points : 1 084
    Points
    1 084
    Par défaut
    Bonjour,

    Quelques remarques :

    - tous les GOTO (sauf les 2 premiers) que tu utilises sont inutiles, tu peux les supprimer
    - si les extensions de commandes sont activées, un seul CD par chemin est suffisant, pas besoin de faire en plusieurs fois comme tu fais, par exemple : cd Users\guill\Desktop\Batch\Application pour le batch
    - tu pourrais faire un peu de gestion d'erreur en testant l'existence de la commande avant de l'exécuter, par exemple : if exist "ccleaner.exe" (ccleaner.exe /AUTO > nul 2>&1) else (echo CCleaner n'existe pas)

  3. #3
    Futur Membre du Club
    Homme Profil pro
    etudiant
    Inscrit en
    Juillet 2019
    Messages
    6
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : etudiant
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Juillet 2019
    Messages : 6
    Points : 5
    Points
    5
    Par défaut
    Voila je l'ai modifie y a t il encore des erreur ?

    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
    @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 
     
    :: Fin du batch Si il n'est pas mit en ADMIN :: 
    :finish
    pause
    exit
     
    :: Fin du Batch :: 
    :finish !
    echo Le batch est fini 
    pause 
    exit
     
    :: Demarrage du Batch :: 
    :intro
    echo -----------------------------------------------------------------------------------------
    echo -----------------------------------------------------------------------------------------
    echo                               Batch de Nettoyage by Nenatik 
    echo -----------------------------------------------------------------------------------------
    echo -----------------------------------------------------------------------------------------
    cd..
    cd..
     
    :: ANALYSE KVRT :: 
    echo.
    echo -----------------------------------------------------------------------------------------
    echo                                    Analyse par KVRT ... 
    echo -----------------------------------------------------------------------------------------
    if exist Users\guill\Desktop\Batch\Application_pour_le_batch\kaspersky_virus_removal_tool\KVRT.exe (
        start /wait Users\guill\Desktop\Batch\Application_pour_le_batch\kaspersky_virus_removal_tool\KVRT.exe -accepteula -adinsilent -silent -processlevel 2 -dontcryptsupportinfo > nul 2>&1
    ) else (
        echo !ERROR! KVRT n'est pas trouver 
        echo Telecharger le dans le dossier C:\Users\guill\Desktop\Batch\Application_pour_le_batch
    ) > nul 2>&1
     
    :: NETTOYAGE BLEACHBIT ::
    echo.
    echo -----------------------------------------------------------------------------------------
    echo                                 Nettoyage par BleachBit ... 
    echo -----------------------------------------------------------------------------------------
    if exist Users\guill\Desktop\Batch\Application_pour_le_batch\bleachbit\bleachbit_console.exe (
        start Users\guill\Desktop\Batch\Application_pour_le_batch\bleachbit\bleachbit_console.exe --preset --clean > nul 2>&1
    ) else (
        echo !ERROR! BleachBit n'est pas trouver !
        echo Telecharger le dans le dossier C:\Users\guill\Desktop\Batch\Application_pour_le_batch
    ) > nul 2>&1
     
    :: NETTOYAGE CCLEANER ::
    echo.
    echo -----------------------------------------------------------------------------------------
    echo                                 Nettoyage par CCleaner ... 
    echo -----------------------------------------------------------------------------------------
    if exist Users\guill\Desktop\Batch\Application_pour_le_batch\ccleaner\ccleaner.exe (
        start Users\guill\Desktop\Batch\Application_pour_le_batch\ccleaner\ccleaner.exe /AUTO > nul 2>&1
        :: DELAY POUR QUE LE CMD ATTENDE LA FIN DU NETTOYAGE CCLEANER ::
        ping 127.0.0.1 -n 180 > nul 2>&1 
        taskkill Users\guill\Desktop\Batch\Application_pour_le_batch\ccleaner\ccleaner.exe /f /im >nul 2>&1
    ) else (
        echo !ERROR! CCleaner n'est pas trouver !
        echo Telecharger le dans le dossier C:\Users\guill\Desktop\Batch\Application_pour_le_batch
    ) > nul 2>&1 
     
    :: ANALYSE STINGER ::
    echo.
    echo -----------------------------------------------------------------------------------------
    echo                                  Analyse par Stinger ... 
    echo -----------------------------------------------------------------------------------------
    if exist Users\guill\Desktop\Batch\Application_pour_le_batch\mcafee_stinger\stinger32.exe (
        start /wait Users\guill\Desktop\Batch\Application_pour_le_batch\mcafee_stinger\stinger32.exe --GO --SILENT --PROGRAM --DELETE > nul 2>&1
    ) else (
        echo !ERROR! Stinger n'est pas trouver !
        echo Telecharger le dans le dossier C:\Users\guill\Desktop\Batch\Application_pour_le_batch
    ) > nul 2>&1
     
    :: ANALYSE SVRT :: 
    echo.
    echo -----------------------------------------------------------------------------------------
    echo                        Analyse par Sophos Virus Removal Tool ... 
    echo -----------------------------------------------------------------------------------------
    if exist Users\guill\Desktop\Batch\Application_pour_le_batch\sophos_virus_remover\svrtcli.exe (
        start Users\guill\Desktop\Batch\Application_pour_le_batch\sophos_virus_remover\svrtcli.exe -yes -debug > nul 2>&1
    ) else (
        echo !ERROR! Sophos Virus Removal Tool n'esn pas trouver
        echo Telecharger le dans le dossier C:\Users\guill\Desktop\Batch\Application_pour_le_batch
    )
    goto finish !

  4. #4
    Membre éprouvé
    Homme Profil pro
    Développeur .NET en devenir
    Inscrit en
    Août 2017
    Messages
    546
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : France, Moselle (Lorraine)

    Informations professionnelles :
    Activité : Développeur .NET en devenir
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Août 2017
    Messages : 546
    Points : 1 084
    Points
    1 084
    Par défaut
    Voilà quelques corrections :

    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
    @ECHO OFF
    setlocal enableextensions disabledelayedexpansion
    chcp 28591 >nul
     
    REM Debut du Batch
    :CHECKPERMISSION
    ATTRIB %windir%\system32 -h | FINDSTR /I "system32" >nul
    IF %ERRORLEVEL% NEQ 1 (
    ECHO.
    ECHO Ce script doit être lancé en Administrateur !
    ECHO.
    GOTO finish
    )
    goto intro
     
    :: Fin du batch Si il n'est pas mis en ADMIN ::
    :finish
    pause
    exit
     
    :: Fin du Batch ::
    :finish !
    echo Le batch est fini
    pause
    exit
     
    :: Demarrage du Batch ::
    :intro
    echo -----------------------------------------------------------------------------------------
    echo -----------------------------------------------------------------------------------------
    echo Batch de Nettoyage by Nenatik
    echo -----------------------------------------------------------------------------------------
    echo -----------------------------------------------------------------------------------------
     
    set dossier=%USERPROFILE%\Desktop\Batch\Application_pour_le_batch
    cd /d %dossier% || exit /b 1
     
    :: ANALYSE KVRT ::
    echo.
    echo -----------------------------------------------------------------------------------------
    echo Analyse par KVRT ...
    echo -----------------------------------------------------------------------------------------
    if exist "kaspersky_virus_removal_tool\KVRT.exe" (
    	start /D "%dossier%\kaspersky_virus_removal_tool" /WAIT "KVRT.exe -accepteula -adinsilent -silent -processlevel 2 -dontcryptsupportinfo" >nul 2>&1
    	) else (	
    	echo !ERROR! KVRT n'est pas trouvé !
    	echo Téléchargez-le dans le dossier %dossier%
    ) >nul 2>&1
     
    :: NETTOYAGE BLEACHBIT ::
    echo.
    echo -----------------------------------------------------------------------------------------
    echo Nettoyage par BleachBit ...
    echo -----------------------------------------------------------------------------------------
    if exist "bleachbit\bleachbit_console.exe" (
    	start /D "%dossier%\bleachbit" /WAIT "bleachbit_console.exe --preset --clean" >nul 2>&1
    	) else (
    	echo !ERROR! BleachBit n'est pas trouvé !
    	echo Téléchargez-le dans le dossier %dossier%
    ) >nul 2>&1
     
    :: NETTOYAGE CCLEANER ::
    echo.
    echo -----------------------------------------------------------------------------------------
    echo Nettoyage par CCleaner ...
    echo -----------------------------------------------------------------------------------------
    if exist "ccleaner\ccleaner.exe" (
    	start /D "%dossier%\ccleaner" /WAIT "ccleaner.exe /AUTO" >nul 2>&1
    	) else (
    	echo !ERROR! CCleaner n'est pas trouvé !
    	echo Téléchargez-le dans le dossier %dossier%
    ) >nul 2>&1
     
    :: ANALYSE STINGER ::
    echo.
    echo -----------------------------------------------------------------------------------------
    echo Analyse par Stinger ...
    echo -----------------------------------------------------------------------------------------
    if exist "mcafee_stinger\stinger32.exe" (
    	start /D "%dossier%\mcafee_stinger" /WAIT "stinger32.exe --GO --SILENT --PROGRAM --DELETE" >nul 2>&1
    	) else (
    	echo !ERROR! Stinger n'est pas trouvé !
    	echo Téléchargez-le dans le dossier %dossier%
    ) >nul 2>&1
     
    :: ANALYSE SVRT ::
    echo.
    echo -----------------------------------------------------------------------------------------
    echo Analyse par Sophos Virus Removal Tool ...
    echo -----------------------------------------------------------------------------------------
    if exist "sophos_virus_remover\svrtcli.exe" (
    	start /D "%dossier%\sophos_virus_remover" /WAIT "svrtcli.exe -yes -debug" >nul 2>&1
    	) else (
    	echo !ERROR! Sophos Virus Removal Tool n'est pas trouvé !
    	echo Téléchargez-le dans le dossier %dossier%
    ) >nul 2>&1
    goto finish !

  5. #5
    Futur Membre du Club
    Homme Profil pro
    etudiant
    Inscrit en
    Juillet 2019
    Messages
    6
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Bas Rhin (Alsace)

    Informations professionnelles :
    Activité : etudiant
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Juillet 2019
    Messages : 6
    Points : 5
    Points
    5
    Par défaut
    J'ai rajouté deux-trois trucs mais je pense que tout est bon :

    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
    @ECHO OFF
    setlocal enableextensions disabledelayedexpansion
    chcp 28591 >nul
     
    :: Debut du Batch ::
    :CHECKPERMISSION
    ATTRIB %windir%\system32 -h | FINDSTR /I "system32" >nul
    IF %ERRORLEVEL% NEQ 1 (
    ECHO.
    ECHO Ce script doit être lancé en Administrateur !
    ECHO.
    GOTO finish
    )
    goto intro
     
    :: Fin du batch Si il n'est pas mis en ADMIN ::
    :finish
    pause
    exit
     
    :: Fin du Batch ::
    :finish !
    echo Le batch est fini
    pause
    exit
     
    :: Demarrage du Batch ::
    :intro
    echo -----------------------------------------------------------------------------------------
    echo -----------------------------------------------------------------------------------------
    echo Batch de Nettoyage by Nenatik
    echo -----------------------------------------------------------------------------------------
    echo -----------------------------------------------------------------------------------------
     
    set dossier=%USERPROFILE%\Desktop\Batch\Application_pour_le_batch
    cd /d %dossier% || exit /b 1
     
    :: ANALYSE KVRT ::
    echo.
    echo -----------------------------------------------------------------------------------------
    echo Analyse par KVRT ...
    echo -----------------------------------------------------------------------------------------
    if exist "kaspersky_virus_removal_tool\KVRT.exe" (
    	start /D "%dossier%\kaspersky_virus_removal_tool" /WAIT "KVRT.exe -accepteula -adinsilent -silent -processlevel 2 -dontcryptsupportinfo" >nul 2>&1
    	) else (	
    	echo !ERROR! KVRT n'est pas trouvé !
    	echo Téléchargez-le dans le dossier %dossier%
    ) >nul 2>&1
     
    :: NETTOYAGE BLEACHBIT ::
    echo.
    echo -----------------------------------------------------------------------------------------
    echo Nettoyage par BleachBit ...
    echo -----------------------------------------------------------------------------------------
    if exist "bleachbit\bleachbit_console.exe" (
    	start /D "%dossier%\bleachbit" /WAIT "bleachbit_console.exe --preset --clean" >nul 2>&1
    	) else (
    	echo !ERROR! BleachBit n'est pas trouvé !
    	echo Téléchargez-le dans le dossier %dossier%
    ) >nul 2>&1
     
    :: NETTOYAGE CCLEANER ::
    echo.
    echo -----------------------------------------------------------------------------------------
    echo Nettoyage par CCleaner ...
    echo -----------------------------------------------------------------------------------------
    if exist "ccleaner\ccleaner.exe" (
    	start /D "%dossier%\ccleaner" /WAIT "ccleaner.exe /AUTO" >nul 2>&1
    	) else (
    	echo !ERROR! CCleaner n'est pas trouvé !
    	echo Téléchargez-le dans le dossier %dossier%
    ) >nul 2>&1
     
    :: ANALYSE STINGER ::
    echo.
    echo -----------------------------------------------------------------------------------------
    echo Analyse par Stinger ...
    echo -----------------------------------------------------------------------------------------
    if exist "mcafee_stinger\stinger32.exe" (
    	start /D "%dossier%\mcafee_stinger" /WAIT "stinger32.exe --GO --SILENT --PROGRAM --DELETE" >nul 2>&1
    	) else (
    	echo !ERROR! Stinger n'est pas trouvé !
    	echo Téléchargez-le dans le dossier %dossier%
    ) >nul 2>&1
     
    :: ANALYSE SVRT ::
    echo.
    echo -----------------------------------------------------------------------------------------
    echo Analyse par Sophos Virus Removal Tool ...
    echo -----------------------------------------------------------------------------------------
    if exist "sophos_virus_remover\svrtcli.exe" (
    	start /D "%dossier%\sophos_virus_remover" /WAIT "svrtcli.exe -yes -debug" >nul 2>&1
    	) else (
    	echo !ERROR! Sophos Virus Removal Tool n'est pas trouvé !
    	echo Téléchargez-le dans le dossier %dossier%
    ) >nul 2>&1
     
    :: LANCEMENT DU CLEANMGR :: 
    echo.
    echo -----------------------------------------------------------------------------------------
    echo                             Nettoyage par les outil Windows ... 
    echo -----------------------------------------------------------------------------------------
    if exist windows\SYSTEM32\cleanmgr.exe (
        start windows\SYSTEM32\cleanmgr.exe /dc > nul 2>&1
        start windows\SYSTEM32\cleanmgr.exe /dd > nul 2>&1
    ) else (
        echo.
        echo !LA COMMANDE CLEANMGR NE MARCHE PAS SUR TON PC!
    ) > nul 2>&1
     
    :: LANCEMANT DU DEFRAG :: 
    echo.
    echo -----------------------------------------------------------------------------------------
    echo                           Defragmentation par les outil Windows ... 
    echo -----------------------------------------------------------------------------------------
    if exist WINDOWS\system32\dfrgui.exe (
        defrag /C > nul 2>&1
    ) else (
        echo .
        echo !LA COMMANDE DEFRAG NE MARCHE PAS SUR TON PC!
    ) > nul 2>&1
    goto finish !

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Besoin d'aide pour mon appli
    Par vince351 dans le forum AWT/Swing
    Réponses: 22
    Dernier message: 31/01/2007, 12h26
  2. faisabilite et aide pour mon projet en flash
    Par filsdugrand dans le forum Flash
    Réponses: 4
    Dernier message: 16/11/2006, 19h02
  3. Vos conseils et aide pour mon futur site
    Par morphine63 dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 5
    Dernier message: 08/11/2006, 17h30
  4. besoin d'aide pour mon future site
    Par vulquin dans le forum Général Conception Web
    Réponses: 3
    Dernier message: 11/06/2006, 20h33
  5. Besoin d'aide pour mon rpg en javascript
    Par CyberTwister dans le forum Général JavaScript
    Réponses: 9
    Dernier message: 07/04/2006, 13h26

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo