My batch Menu
Moderator: DosItHelp
My batch Menu
Hello everyone, I made a really handy batch menu. You can download it here: https://sites.google.com/view/quint-09/ ... nt_09-menu or you can view the source code here: https://docs.google.com/document/d/18Gq ... sp=sharing You can check the first link for updates to the menu.
I tried to get all the code in a code block but then the post was to long so you have to use the link. Well anyway, I hope you like it.
-- QUINT_09
I tried to get all the code in a code block but then the post was to long so you have to use the link. Well anyway, I hope you like it.
-- QUINT_09
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: My batch Menu
Wow, this is... big. You clearly spent a lot of time on this. I'd recommend looking into the for /L loop, arrays, and functions if you're interested in significantly shrinking your code.
Re: My batch Menu
Thank you, I might look into those things in the future as I am currently focused on adding new features. If you have any suggestions, please let me know.
Re: My batch Menu
I would suggest you take the advice and learn to program it more efficiently before adding more features. Your code is already a couple hundred pages longer than it has to be.
-
- Posts: 175
- Joined: 17 Jan 2016 23:55
Re: My batch Menu
I agree with Squashman. At this point you're not learning anything anymore, you're just making a bit of a mess. The code can be made substantially shorter.
Re: My batch Menu
I'll make it the focus of the next update to shorten the code as much as possible. I think i can use functions to shorten the saving of custom programs/websites. I'll start work on it immediately.
Re: My batch Menu
3 seconds not seeing any menu. Just something like "boot" which is misleading for a Batch script. Took ages for such a simple task, wasted my time. Closed the window, deleted the script.
Steffen
Steffen
Re: My batch Menu
Psst, Steffen can I tell you a secret. If you press S before the boot logo shows up you skip it. The rest of the time is not able to be skipped because it has to set over 200 variables for all the custom programs and website. It also checks if all variables are there because say for example the color variable is not set. It won't work anymore so it checks it, if it's correct it moves on if it's not there it resets it.
Re: My batch Menu
If you really want to get rid of it completely, you can delete this part of the code.
Code: Select all
choice /t 1 /c sr /d r /n
if errorlevel 2 goto :Bootcon
if errorlevel 1 goto :TimesOpenedCounter
:Bootcon
cls
echo.
echo Booting... Please Wait.
echo.
echo ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿
PING localhost -n 2 >NUL
echo ³ ÛÛÛÛÛÛÛÛ ³
PING localhost -n 2 >NUL
echo ³ ÛÛ ÛÛ ³
PING localhost -n 2 >NUL
echo ³ ÛÛ ÛÛ ³
PING localhost -n 2 >NUL
echo ³ ÛÛÛÛÛÛÛÛ ³
PING localhost -n 2 >NUL
echo ³ ÛÛÛÛ ³
PING localhost -n 2 >NUL
echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ
PING localhost -n 1 >NUL
echo.
echo Booting complete.
PING localhost -n 2 >NUL
Re: My batch Menu
Thank you for bringing this to my attention I will add an option to turn that off in the next update.