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
:errorcheck
,:repair
and:exit
actually look like?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)?