1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Running all

Discussion in 'Software Development' started by desmin, Jul 16, 2007.

Thread Status:
Not open for further replies.
Advertisement
  1. desmin

    desmin Banned Thread Starter

    Joined:
    Jul 10, 2007
    Messages:
    57
    i made a menu and if i put in 1 it will continue to run all of my Labels and doesnt go back to choice label heres my code
    Code:
    @echo off
    TITLE Windows Debugger 1.0 RC1
    color 1f
    
    echo Welcome To Windows Debugger
    echo 1 Check For Faults
    echo 2 Check For Applications Problems
    echo 3 CleanUp Drives
    echo 4 Back Up Computer Files
    
    :choice
    set /P C=[1,2,3,4]?
    if "%C%"=="4" goto bakup
    if "%C%"=="3" goto clnup
    if "%C%"=="2" goto appdr
    if "%C%"=="1" goto faultdr
    goto choice
    
    :appdr
    call %systemroot%\system32\drwtsn32.exe
    
    :faultdr
    call %systemroot%\system32\drwatson.exe
    
    :clnup
    call %systemroot%\system32\cleanmgr.exe
    
    :bakup
    call %systemroot%\system32\ntbackup.exe
    so how do i stop it from running all of labels
    thx in advance
     
  2. JohnWill

    JohnWill Retired Moderator

    Joined:
    Oct 19, 2002
    Messages:
    106,418
    That's because you didn't put a GOTO after each of them to send it back to the label choice

    Also, you don't use CALL for EXE files, use START

    Finally, this looks like the menu does the same thing no matter what you type, what's the point of that?
     
  3. desmin

    desmin Banned Thread Starter

    Joined:
    Jul 10, 2007
    Messages:
    57
    thx and there are totally different dr watsons
     
  4. JohnWill

    JohnWill Retired Moderator

    Joined:
    Oct 19, 2002
    Messages:
    106,418
    You're right, I didn't look close enough. :)

    Did that solve your problem?

    You can mark your own threads solved using the thread tools at the top of the page in the upper right corner.© :)
     
  5. desmin

    desmin Banned Thread Starter

    Joined:
    Jul 10, 2007
    Messages:
    57
    lol yeah im gonna be adding more options later
     
  6. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/596575

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice