K danke das hat mir geholfen. habe aber noch eine frage,
wie geht ein command, das ich eine andere batchdatei schließe
Added after 52 minutes:
Ja es klappt.
matrix.bat:
Code:
::made by Systemless
@echo off
echo noinput > 1.txt
color 2
start stopit.bat
:start
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
set /p hlp= < 1.txt
if "%hlp:~0,7%"=="noinput" goto start
echo noinput > 1.txt
Und die Stupit.bat(die shutdowns sind zum testen als comments gesetzt):
Code:
::Made by Systemless
@echo off
mode 40,7
title Eingabefenster
:anfang
cls
echo ****************************************
echo **************Eingabe Hier**************
echo ******Schreibe Tipp für einen Tipp******
echo ****************************************
set /p a=
if /I %a%==stopit goto shutdown
if /I %a%==plzstopit goto win
if /I %a%==Tipp goto shutdowntipp
ping 127.0.0.1 -n 1 > nul
goto falsch
:falsch
::shutdown.exe -r -f -t 300 || shutdown.exe /r /f /t 300
goto anfangohne
:shutdowntipp
::shutdown.exe -r -f -t 300 || shutdown.exe /r /f /t 300
goto tipp
:shutdown
::shutdown.exe -r -f -t 300 || shutdown.exe /r /f /t 300
goto countdown
:tipp
cls
msg * Hör auf auf Englisch, aber höflich! || echo Hör auf auf Englisch, aber höflich!
timeout 5
goto anfangohne
:anfangohne
cls
echo ****************************************
echo **************Eingabe Hier**************
echo ******Schreibe Tipp für einen Tipp******
echo ****************************************
set /p a=
if /I %a%==stopit goto countdown
if /I %a%==plzstopit goto win
if /I %a%==tipp goto tipp
ping 127.0.0.1 -n 1 > nul
goto anfangohne
:countdown
cls
::shutdown.exe -r -f -t 300 || shutdown.exe /r /f /t 300
cls
echo This wasn't polite.
ping 127.0.0.1 -n 3 >nul && cls
echo Please Wait..
ping 127.0.0.1 -n 2 >nul && cls
echo Please Wait...
ping 127.0.0.1 -n 2 >nul && cls
echo Please Wait....
ping 127.0.0.1 -n 2 >nul && cls
echo Please Wait.....
ping 127.0.0.1 -n 2 >nul && cls
echo Please Wait......
ping 127.0.0.1 -n 2 >nul && cls
echo Please Wait.......
ping 127.0.0.1 -n 2 >nul && cls
echo Please Wait........
ping 127.0.0.1 -n 2 >nul && cls
echo Please Wait.........
ping 127.0.0.1 -n 2 >nul && cls
echo Please Wait..........
ping 127.0.0.1 -n 2 >nul && cls
echo Please Wait...........
ping 127.0.0.1 -n 2 >nul && cls
echo Please Wait............
ping 127.0.0.1 -n 2 >nul && cls
:wahl
cls
set /P w= Nochmal Probieren?[y]/[n]
if /I "%w%"=="y" goto anfangohne
if /I "%w%"=="n" goto owned
echo Wrong Input: [%w%]
pause
goto wahl
:win
cls
reg add "HKCU\Console" /v FullScreen /t REG_DWORD /d "0" /f > nul
echo ende > 1.txt
shutdown.exe -a || shutdown.exe /a
pause
exit
:owned
cls
set /P h= Bist du dir sicher?[y]/[n]
if /I "%h%"=="y" goto anfangohne
if /I "%h%"=="n" goto youarestupid
goto owned
:youarestupid
cls
set /P d= Es wird schrekliche konsequenzen haben [y]/[n]
if /I "%d%"=="y" goto anfangohne
if /I "%d%"=="n" goto stupid
goto youarestupid
:stupid
::shutdown.exe -s -f -t 10 || shutdown.exe /s /f /t 10
msg * "Owned"
exit
Added after 1 hours 14 minutes:
kann man unterbinden das man in stop.bat commandos wie "exit" schreiben kann?