Need help with batch file

Discussion in 'Windows 7' started by arnem, Apr 19, 2011.

  1. arnem

    arnem MDL Novice

    Apr 19, 2011
    3
    0
    0
    um ive going to make shomthing
    my batch have created a file named progstart.dll
    and into it it stays good
    and it also can stay bad
    and i want to use that txt into the batch again
    like
    if progstart.txt==GOOD goto :startgood
    if progstart.txt==BAD goto :startbad
    or shomthing like that im not sure
    then
    :startgood
    echo starting good
    start *************************
    exit
    #it stats in a good mode
    :startbad
    echo starting bad
    start ******************************************
    #and it starts bad
    the point with this is i want it to work but it dosent
    this is wat im done with
    this is to a game yes
    (srry for my grammar)
    DO NOT COPY JUST HELP!!!
    im using this to help somebody
    but i dont wana publish this until im done
    SO DO NOT COPY!!!
    ------------------------------------------------------------
    @echo off
    ::made by arnem::
    if exist progstart.txt goto :start
    if not exist progstart.txt goto :first

    :first
    echo is your computer Good or Bad? (G/B)
    choice /c GT /n
    if errorlevel 2 goto bad
    if errorlevel 1 goto good
    :bad
    cls
    echo BAD >>progstart.txt
    goto :start
    :good
    cls
    echo GOOD >>progstart.txt
    goto :start
    :start
    set /p tp==
    type progstart.txt
    if progstart.txt==GOOD goto :startgood
    if progstart.txt==BAD goto :startbad

    :startgood
    echo good
    ping localhost /n 5 >nul
    hl2.exe -game portal
    ping localhost /n 10 nul
    exit

    :startbad
    echo bad
    ping localhost /n 5 >nul
    cls
    echo open with fullscreen
    hl2 -game portal -window -dxlevel 81 +mat_forcehardwaresync 0
    ping localhost /n 10 >nul
    exit
    ------------------------------------------------------------
    its so far i am but its fail with the
    if progstart.txt==GOOD goto :startgood
    if progstart.txt==BAD goto :startbad
    im not sure how im going to do that so
    please help :D
     
  2. arnem

    arnem MDL Novice

    Apr 19, 2011
    3
    0
    0
    um im love batch im almost realy good at it
    but its is small things that i dont understand but
    ill figure that out with forums and soon
    but i realy need help
    PLEASE PLEASE I REALY NEED HELP!!!
     
  3. arnem

    arnem MDL Novice

    Apr 19, 2011
    3
    0
    0
    seems to nobody wants to visit me -.-
     
  4. Claysoft65

    Claysoft65 MDL Member

    Sep 4, 2009
    136
    51
    10
    #4 Claysoft65, Apr 19, 2011
    Last edited by a moderator: Apr 20, 2017
    ...be quiet, dude... just less than 1 hour after your post... you're arguing the wrong thing... :D :p

    1.- "choice /c GT /n" <--- Why there's a "T" else than a "B" for the second choice ?

    2.- :start section .... I think that something like this could be good for you :
    Code:
    :start
    TYPE progstart.txt | FINDSTR /I "GOOD" >nul
    IF NOT ERRORLEVEL 1 (
    GOTO :startgood
    ) ELSE (
    GOTO :startbad
    )
    Bye
    Clay