Search found 4 matches

by sdear
21 Apr 2014 09:46
Forum: DOS Batch Forum
Topic: Close a batch file, but don't EXIT
Replies: 10
Views: 7394

Re: Close a batch file, but don't EXIT

Yes, I had a brain cramp: I only took the menu_3 code & just now noticed that I'd missed this: if "%choice%" == "3" goto :menu_3 I'm assuming I could also use this if I had a similar menu item (so something outside the menu)... Thank for the help, guys. I haven't done much ba...
by sdear
21 Apr 2014 09:00
Forum: DOS Batch Forum
Topic: Close a batch file, but don't EXIT
Replies: 10
Views: 7394

Re: Close a batch file, but don't EXIT

I get the same results whether I use the version suggested or this shorter version.

:menu_3 Go to Programmer-Netcore Folder
endlocal
endlocal
K:
cd \DVMS
GOTO :End
by sdear
18 Apr 2014 13:54
Forum: DOS Batch Forum
Topic: Close a batch file, but don't EXIT
Replies: 10
Views: 7394

Re: Close a batch file, but don't EXIT

Here's another version: @ECHO OFF REM.-- Prepare the Command Processor SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION :menuLOOP cls echo. echo.= Menu ========================================= echo. for /f "tokens=1,2,* delims=_ " %%A in ('"findstr /b /c:":menu_" &...
by sdear
18 Apr 2014 10:39
Forum: DOS Batch Forum
Topic: Close a batch file, but don't EXIT
Replies: 10
Views: 7394

Close a batch file, but don't EXIT

I'm using Windows 7. I found the below batch file on your site; thank you. I've used it to consolidate my other batch files & they all work fine. The part below stays stuck in the menu & I need to work on the other directory. @ECHO OFF REM.-- Prepare the Command Processor SETLOCAL ENABLEEXTE...