Feed
Google+
Contact
XING
LinkedIn
Twitter
ICQ
meebo.com

Wieso will das nicht!?

by Roland Schumacher alias GENiALi 7. November 2006 -- 44 words  -- 1 mal gelesen

Vielleicht ist hier ja noch ein CMD Profi am lesen.
Bei mir wird immer DATEIDA ausgeführt. Egal auf
was ich prüfe im IF EXIST. Wieso?

@echo off

IF EXIST C:\bot.ini GOTO DATEIDA ELSE GOTO DATEINICHTDA

:DATEIDA
echo "es ist gut" >> %LOGDATEI%
goto ENDE

:DATEINICHTDA
echo "es ist schlecht" >> %LOGDATEI%
goto ENDE

:ENDE
PAUSE

Tags:

Tags:

Hilferuf und Lösung

Kommentare (2) -

thomas woelfer
thomas woelfer
07.11.2006 09:55:12 #

da fehlt ein S am ende vom exist.

tipp für solche situationen: erstmal das echo off ausschalten Smile

-thomas

Antwort

thomas woelfer
thomas woelfer
07.11.2006 10:27:43 #

um... sorry wg. des "S" - das stimmt nicht. so gehts:

IF EXIST C:\config.sys (GOTO DATEIDA) ELSE GOTO DATEINICHTDA

LaughingATEIDA
echo "es ist gut"
goto ENDE

LaughingATEINICHTDA
echo "es ist schlecht"
goto ENDE

:ENDE
PAUSE

Antwort

Kommentar schreiben

  Country flag

biuquote
  • Kommentar
  • Live Vorschau
Loading

Statistik

Gesamte Posts: 1025
Dieses Jahr: 7
Diesen Monat: 1
Diese Woche: 0
Kommentare: 929
Total Bewertungen: 91
Ø Bewertung: 4,42
Meisten Kommentare
Google+ ... (28)
Beste Ø Bewertung
Tastaturlayout von Visual Stud ... (5)
Meiste Bewertungen
Windows 7 und die ersten Erfah ... (5)

Buttons

Stop Spam Harvesters, Join Project Honey Pot Benutzerprofil von GENiALi connection speed test network connection Bloggeramt.de Slug.ch Blog Verzeichnis und Blog Webkatalog Schumacher Roland Seitwert Valid XHTML 1.0 Transitional

writing