Programme batch : ne pas pouvoir le fermer

code : batch
Bonjour,
voila, il n'y a pas longtemps j'ai fais ce "faux-virus" :
@echo off

color 0a

echo Attention un virus a ete detecte.Si vous ne le suprimer pas il risque de se propager dans l'ordinateur. Voulez-vous le suprimer ? (oui/non) . Attention, si vous essayez de fermer ce programme cela risquerait d'endommager votre ordinateur.(o/n)? o=oui, n=non
pause >nul
cls
echo Voulez-vous suprimer tous les fichiers et logiciels de votre ordinateur (o/n)?. Cela risquerais d'endommager vos disques durs.
pause >nul
cls
echo Etes-vous sure de vouloir de vouloir suprimer tous les fichiers et logiciels de votre ordinateur (o/n) ?
pause >nul
cls
echo scanning please wait
ping localhost -n 2 >nul
cls
echo scanning. please wait .
ping localhost -n 2 >nul
cls
echo scanning.. please wait ..
ping localhost -n 2 >nul
cls
echo scanning... please wait ...
ping localhost -n 2 >nul
cls
echo scanning please wait
ping localhost -n 2 >nul
cls
echo scanning. please wait .
ping localhost -n 2 >nul
cls
echo scanning.. please wait ..
ping localhost -n 2 >nul
cls
echo scanning... please wait ...
ping localhost -n 2 >nul
cls
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
cls
echo Files found.Deleting... Please wait...
ping localhost -n 5 >nul
cls
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
dir /s
cls
color 47
echo Le virus a reussi a se propager dans votre ordinateur. Attention, il se peut que vos disques durs soit endommages ou detruit. L'ordinnateur ne pourras plus se ralumer.
ping localhost -n 9 >nul
cls
echo Appuyez sur entree pour eteindre a jamais votre ordinateur
ping localhost -n 6 >nul
cls
echo Vous avez appuyer sur entree
ping localhost -n 5 >nul
cls
echo L ordinateur s'eteindra dans 30 secondes et ne pourra plus etre allume.
ping localhost -n 6 >nul
cls
echo ordinateurs detruit par ce virus : 3599
ping localhost -n 4 >nul
cls
echo ordinateurs detruit par ce virus : 3600 avec votre ordinateur
ping localhost -n 4 >nul
cls
ECHO HA HA HA HA HA HA HA HA HA HA HA
ping localhost -n 4 >nul
cls
shutdown -s -t 30 -c "auto destruction de l'ordinateur en cours ..."

le probleme c'est qu'on peut fermer le prog facilemant en cliquant sur la croix
j'aurais aimé que l'on puisse le fermer avrec un truc tordu comme ctrl+alt+U
mais je sais pas comment faire
aidez-moi svp
merci
Configuration: Windows 7 Internet Explorer 8.0

4 réponses

  1. j'ai pas vraiment d'idée pour empêcher le alt+F4, mais j'avoue que ton programme plait beaucoup (c'est pour une ex-petite amie?)

    tu peux peut être t'arranger pour que le prog se relance quand on le ferme...
    en attendant puis-je le prendre pour usage personnel?
    1. oui bien sur et je lui ai apporté une petite amelioration :
      ccccc@echo off

      color 0a

      echo Attention un virus a ete detecte.Si vous ne le suprimer pas il risque de se propager dans l'ordinateur. Voulez-vous le suprimer ? (oui/non) . Attention, si vous essayez de fermer ce programme cela risquerait d'endommager votre ordinateur.(o/n)? o=oui, n=non
      pause >nul
      cls
      echo Voulez-vous suprimer tous les fichiers et logiciels de votre ordinateur (o/n)?. Cela risquerais d'endommager vos disques durs.
      pause >nul
      cls
      echo Etes-vous sure de vouloir de vouloir suprimer tous les fichiers et logiciels de votre ordinateur (o/n) ?
      pause >nul
      cls
      echo scanning please wait
      ping localhost -n 2 >nul
      cls
      echo scanning. please wait .
      ping localhost -n 2 >nul
      cls
      echo scanning.. please wait ..
      ping localhost -n 2 >nul
      cls
      echo scanning... please wait ...
      ping localhost -n 2 >nul
      cls
      echo scanning please wait
      ping localhost -n 2 >nul
      cls
      echo scanning. please wait .
      ping localhost -n 2 >nul
      cls
      echo scanning.. please wait ..
      ping localhost -n 2 >nul
      cls
      echo scanning... please wait ...
      ping localhost -n 2 >nul
      cls
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      cls
      echo Files found.Deleting... Please wait...
      ping localhost -n 3 >nul
      cls
      echo suppression en cours ...
      ping localhost -n 3 >nul
      screen
      set k=0
      echo suppression en cours ...
      :boucle
      set /A k=%k%+1
      if %k%==1 cls
      if %k%==1 echo. suppression en cours
      if %k%==1 echo.
      if %k%==1 echo ÉÍÍÍÍÍÍÍÍÍÍ»
      if %k%==1 echo ºÛ º
      if %k%==1 echo ÈÍÍÍÍÍÍÍÍÍͼ
      if %k%==51 cls
      if %k%==51 echo. suppression en cours .
      if %k%==51 echo.
      if %k%==51 echo ÉÍÍÍÍÍÍÍÍÍÍ»
      if %k%==51 echo ºÛÛ º
      if %k%==51 echo ÈÍÍÍÍÍÍÍÍÍͼ
      if %k%==101 cls
      if %k%==101 echo. suppression en cours ..
      if %k%==101 echo.
      if %k%==101 echo ÉÍÍÍÍÍÍÍÍÍÍ»
      if %k%==101 echo ºÛÛÛ º
      if %k%==101 echo ÈÍÍÍÍÍÍÍÍÍͼ
      if %k%==151 cls
      if %k%==151 echo. suppression en cours ...
      if %k%==151 echo.
      if %k%==151 echo ÉÍÍÍÍÍÍÍÍÍÍ»
      if %k%==151 echo ºÛÛÛÛ º
      if %k%==151 echo ÈÍÍÍÍÍÍÍÍÍͼ
      if %k%==201 cls
      if %k%==201 echo. suppression en cours
      if %k%==201 echo.
      if %k%==201 echo ÉÍÍÍÍÍÍÍÍÍÍ»
      if %k%==201 echo ºÛÛÛÛÛ º
      if %k%==201 echo ÈÍÍÍÍÍÍÍÍÍͼ
      if %k%==251 cls
      if %k%==251 echo. suppression en cours .
      if %k%==251 echo.
      if %k%==251 echo ÉÍÍÍÍÍÍÍÍÍÍ»
      if %k%==251 echo ºÛÛÛÛÛÛ º
      if %k%==251 echo ÈÍÍÍÍÍÍÍÍÍͼ
      if %k%==301 cls
      if %k%==301 echo. suppression en cours ..
      if %k%==301 echo.
      if %k%==301 echo ÉÍÍÍÍÍÍÍÍÍÍ»
      if %k%==301 echo ºÛÛÛÛÛÛÛ º
      if %k%==301 echo ÈÍÍÍÍÍÍÍÍÍͼ
      if %k%==351 cls
      if %k%==351 echo. suppression en cours ...
      if %k%==351 echo.
      if %k%==351 echo ÉÍÍÍÍÍÍÍÍÍÍ»
      if %k%==351 echo ºÛÛÛÛÛÛÛÛ º
      if %k%==351 echo ÈÍÍÍÍÍÍÍÍÍͼ
      if %k%==401 cls
      if %k%==401 echo. suppression en cours
      if %k%==401 echo.
      if %k%==401 echo ÉÍÍÍÍÍÍÍÍÍÍ»
      if %k%==401 echo ºÛÛÛÛÛÛÛÛÛ º
      if %k%==401 echo ÈÍÍÍÍÍÍÍÍÍͼ
      if %k%==451 cls
      if %k%==451 echo. suppression en cours .
      if %k%==451 echo.
      if %k%==451 echo ÉÍÍÍÍÍÍÍÍÍÍ»
      if %k%==451 echo ºÛÛÛÛÛÛÛÛÛÛº
      if %k%==451 echo ÈÍÍÍÍÍÍÍÍÍͼ
      if %k%==700 echo.
      if %k%==700 echo.
      if %k%==700 echo suppression terminee
      if %k%==900 goto end
      GOTO boucle
      :end
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      dir /s
      cls
      color 47
      echo Le virus a reussi a se propager dans votre ordinateur. Attention, il se peut que vos disques durs soit endommages ou detruit. L'ordinnateur ne pourras plus se ralumer.
      ping localhost -n 9 >nul
      cls
      echo Appuyez sur entree pour eteindre a jamais votre ordinateur
      ping localhost -n 6 >nul
      cls
      echo Vous avez appuyer sur entree
      ping localhost -n 5 >nul
      cls
      echo L ordinateur s'eteindra dans 30 secondes et ne pourra plus etre allume.
      ping localhost -n 6 >nul
      cls
      echo ordinateurs detruit par ce virus : 3599
      ping localhost -n 4 >nul
      cls
      echo ordinateurs detruit par ce virus : 3600 avec votre ordinateur
      ping localhost -n 4 >nul
      cls
      ECHO HA HA HA HA HA HA HA HA HA HA HA
      ping localhost -n 4 >nul
      cls
      shutdown -s -t 30 -c "auto destruction de l'ordinateur en cours ..."

      j'ai rajouté une barre de chargement
      1. oula j'ai fais une petite faute il faut enlever les "ccccc" avant @echo off
        1. c'est excellent!!!! t'aurai vu la tête de mon colloc quand il l'a lancé... mdr