verification d'un batch svp
bonjour a tous
je vient de faire mon premier batch
pouvez vous me dire si il est correct ou se qu il faudrait changer pour le rendre plus propre ou plus court
il fonctionne
merci
je rajoute qu il faut mettre le programme Wget.exe dans le meme dossier pour qu il fonctionne
Citation:
@echo off
rem variable boite de dialogue
set bordha= ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
set texnav= º T‚l‚chargement navilog1 º
set texcom= º T‚l‚chargement combofix º
set texsmi= º T‚l‚chargement smitfraudfix º
set termin= º TERMINER º
set patien= º patienter º
set bordba= ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
color 6e
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º º
echo º º
echo º T‚l‚chargement de fix º
echo º º
echo º º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
pause
:retour
cls
color 1F
echo.
echo.
echo 1 Smitfraudfix.
echo.
echo 2 Navylog
echo.
echo 3 combofix
echo.
echo. 4 tous les fix
echo.
echo. 5 quitter
echo -----------------------------------------------------------------------------
set /p menu= Faite votre choix and press enter :
@if "%menu%"=="1" goto smitf
@if "%menu%"=="2" goto navy
@if "%menu%"=="3" goto combo
@if "%menu%"=="4" goto tous
@if "%menu%"=="5" exit
echo "%menu%" Choix non disponible !
pause
goto retour
:smitf
if not exist fix\smitfraudfix.zip goto sm
erase /q fix\SmitfraudFix.zip rem pour avoir la derniere version
:sm
cls
echo %bordha%
echo %texsmi%
echo %patien%
echo %bordba%
rem telechargement smitfraufix
Wget.exe -q -N -m -nd -P fix/ --input-file=url/http/smitf.txt
PING -n 3 127.0.0.1 >NUL
cls
color 6e
echo %bordha%
echo %texsmi%
echo %termin%
echo %bordba%
pause
goto retour
:navy
if not exist fix\navilog1.exe goto nav
erase /q fix\Navilog1.exe rem pour avoir la derniere version
:nav
cls
echo %bordha%
echo %texnav%
echo %patien%
echo %bordba%
rem telechargement navylog
Wget.exe -q -N -m -nd -P fix/ --input-file=url/http/navylog.txt
PING -n 1 127.0.0.1 >NUL
cls
echo %bordha%
echo %texnav%
echo %termin%
echo %bordba%
pause
goto retour
:combo
if not exist fix\combofix.exe goto enr
erase /q fix\combofix.exe rem pour avoir la derniere version
:enr
cls rem telechage combo
echo %bordha%
echo %texcom%
echo %patien%
echo %bordba%
rem telechargement combofix
Wget.exe -N -m -nd -q -P fix/ --input-file=url/http/combofix.txt
PING -n 3 127.0.0.1 >NUL
cls
rem terminer combofix
echo. %bordha%
echo. %texcom%
echo. %termin%
echo. %bordba%
pause
goto retour
:tous
if not exist fix\smitfraudfix.zip goto smi
rem pour avoir la derniere version
erase /q fix\SmitfraudFix.zip
:smi
cls
echo %bordha%
echo %texsmi%
echo %patien%
echo %bordba%
Wget.exe -q -N -m -nd -P fix/ --input-file=url/http/smitf.txt
PING -n 3 127.0.0.1 >NUL
cls
color 6e
echo %bordha%
echo %texsmi%
echo %termin%
echo %bordba%
color 1F
if not exist fix\navilog1.exe goto navi
rem pour avoir la derniere version
erase /q fix\Navilog1.exe
:navi
echo %bordha%
echo %texnav%
echo %patien%
echo %bordba%
Wget.exe -q -N -m -nd -P fix/ --input-file=url/http/navylog.txt
PING -n 3 127.0.0.1 >NUL
cls
echo %bordha%
echo %texsmi%
echo %texnav%
echo %termin%
echo %bordba%
color 1F
if not exist fix\combofix.exe goto com
rem pour avoir la derniere version
erase /q fix\combofix.exe
:com
echo %bordha%
echo %texcom%
echo %patien%
echo %bordba%
Wget.exe -N -m -nd -q -P fix/ --input-file=url/http/combofix.txt
PING -n 3 127.0.0.1 >NUL
cls
echo %bordha%
echo %texsmi%
echo %texnav%
echo %texcom%
echo %termin%
echo %bordba%
rem pour avoir la derniere version
pause
goto retour