0

I am trying to make a Windows Troubleshooter within batch, because why not?

When I come to main menu script, the application won't execute any further, and closes. I have tried to use the CALL function to call the application main menu, and put the code in a separate program, but it won't execute then either... Does anybody know how to fix this? Code is attached below.

First.bat

@echo off 
color a 
title Windows Toubleshooter 
cd C:\windows 
cls 
echo Loading files. Please wait... {LOADING MECHANISM HERE!!} 
echo Loading complete echo Press a key to continue... 
pause >nul 
call main.bat

Main.bat

cls
color 7c
echo Welcome to the  Windows Troubleshooter. To continue, please chose one of the options below.


echo 1) Check for errors
echo 2) Repair errors
echo 3) Exit
echo Please chose an option: 
choice /c asdw/n /m "Chose with W A S D"
IF %errorlevel%==1 goto errorcheck
IF %errorlevel%==2 goto repair
IF %errorlevel%==3 goto exit
8
  • I dunno why you have the user type ASDW for the menu items labelled 1, 2, 3 - doesn't make sense to me. Anyway, where do you get stuck with all this? What does your :errorcheck, :repair and :exit actually look like?
    – notjustme
    Commented Aug 30, 2016 at 18:59
  • Where is the rest of your code?
    – DavidPostill
    Commented Aug 30, 2016 at 19:33
  • -notjustme i have not actually come so far that i have started on these. that is how i found it on the stackoverflow forum. don't remember what thread it was...
    – Khrathrox
    Commented Aug 30, 2016 at 19:38
  • - DavidPostill do you need that too? That piece of the code works perfect.
    – Khrathrox
    Commented Aug 30, 2016 at 19:39
  • @IsakDombestein Again, where are you getting stuck? the application won't execute any further, and closes. Is this before or after you get to make a choice? How does notepad and notepad++ come into the picture (the tags)?
    – notjustme
    Commented Aug 30, 2016 at 19:49

0

You must log in to answer this question.

Browse other questions tagged .