Hallo zusammen,

ich habe leider ein Problem bei einer Batch-Datei.

Ich programmiere selber Batch, kann aber dieses Problem nicht lösen.

Es handelt sich um diesen Code:

@echo off
color f0
title Leon's IP scanner -By Kein Zugriff

:menu
cls
echo.
echo.
echo 1) Scan IP's
echo 2) Shutdown PC
echo 3) Be cool
echo 4) Quit
set /p input="1 , 2 , 3 or 4 : "

if %input% == 1 (
  cls
  echo Scanning IP's in you're near...
  timeout 3 > NUL: /NOBREAK
  echo.
  echo IP's found! (or not)
  timeout 2 > NUL: /NOBREAK
  arp -a 
  echo press any key to continue...
  pause > NUL: /NOBREAK
  goto menu
)

if %input% == 2 (
  cls 
  echo PC Shutsdown...
  Shutdown -s -t 100
  exit
)

if %input% == 3 (
  cls
  goto cool
)

if %input% == 4 (
  exit
)

:cool
color 0a
cls
goto spam

:spam 
echo Cool!
timeout 1 > NUL:
goto spam

Ich brauche eine Antwort. Danke. :)