WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   Batch GAME (http://www.wcm.at/forum/showthread.php?t=228257)

charli007 04.05.2008 00:53

Batch GAME
 
hallo leute, bin neu hier
und hier ist auch schon meine frage:
ich habe eine batch datei geschrieben die folgendes macht:


@echo off
title GAME
color 0F
echo Los gehts!
pause >nul
cls

:anfang
set ein=%random:~-1,5%

:nochmal
echo Errate meine Zahl, Sie liegt zwischen 0-9
set /p zahl=Eingabe:
if %zahl%==%ein% (goto richtig) else (goto falsch)

:richtig
echo Richtig   
pause >nul
goto anfang

:falsch
echo.
echo.
echo Falsch, noch 2 Versuche
set /p zahl=Eingabe:
if %zahl%==%ein% (goto richtig)
echo.
echo Falsch, noch 1 Versuch
set /p zahl=Eingabe:
if %zahl%==%ein% (goto richtig)
echo.
echo Falsch, letzter Versuch
set /p zahl=Eingabe:
if %zahl%==%ein% (goto richtig)
echo Die richtige l0sung lautet %ein%
pause >nul
cls
goto anfang


so, jetzt kommts http://www.bodybuilding-forum.at/ima...n_confused.gif, ich will das die batch datei ausgibt, ob die zahl höher oder niedriger ist.. soll dann ungehähr so aussehen:

"Falsch, die zahl ist höher bzw. nidrieger"

hoffe mir kann da jmd helfen
danke schonmal im voraus!http://www.bodybuilding-forum.at/ima...on_biggrin.gif
mfg Charli007

Don Manuel 04.05.2008 07:52

Ich denke, Du benötigst wbat.


Alle Zeitangaben in WEZ +2. Es ist jetzt 18:03 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag