batch file question + guidence.....

Discussion in 'All other topics' started by 305Graph, Sep 3, 2008.

  1. 305Graph

    305Graph Regular member

    Joined:
    Apr 3, 2006
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    26
    whats up all. i have been trying to learn a bit of batching and decided to start with small codes, im trying to give the user the option to run it or quit it before any execution is done, sadly i cant get it to work as i hoped, here what i got so far:

    @echo off
    echo This will try to open your H drive giving that theres something in it =) .
    echo please choose an option.
    echo 1. run
    echo 2. exit
    pause
    :choice /c:12
    if errorlevel==2 goto salida
    if errorlevel==1 goto run

    :run
    cls
    start /max h:/

    :salida
    cls
    exit

    any help will be appreciated
    tia
     
  2. GrandpaBW

    GrandpaBW Active member

    Joined:
    Feb 28, 2004
    Messages:
    3,730
    Likes Received:
    17
    Trophy Points:
    68
    Wow! That takes me back about 14 years, or so. Unfortunately, without refreshing my memory at bit, I can't help right now.
     

Share This Page