-1
사용자가 선택을 한 후에 메시지를 보내는 프로그램을 만들려고하지만 선택이 끝나면 cmd를 닫습니다. 어떤 도움? heres te 프로그램.선택 프로그램
@echo off
title Get A Life
cd C:
:menu
cls
echo I take no responsibility for your actions. Beyond this point it is you that has the power to kill yourself. If you press ‘x’ then your PC will be formatted. Do not cry if you loose your data or anything.
pause
echo Pick your option:
echo 1. Die slowly
echo 2. Instant Death
echo 3. Stay Away From This One
echo 4. Die this way (For Wimps!)
echo 5. Easy way out
set input=nothing
set /p input=Choice:
if %input%=1
then msg * Your computer will now sutdown
else GOTO END
if %input%=2
then msg * Your hard drive will now be formatted
else GOTO END
if %input%=3
then msg * FINE! JUST PICK THE MIDDLE ONE!
else GOTO end
if %input%=4
then msg * Can you guess what happens next?
else GOTO END
if %input%=5
then START %documents%/%Personal Projects%/Cool trick.bat
:END
젠장, 당신은 날 이길 약 10 초. :) – rojo