Hi i want to make a windows batch file But i dont know how to make good interactive menu ... Can someone show me how to make it? Thank You! ^_^ Best Regards NST_Adventure
You can open the KMS_VL_AIO with notepad and read it. if you can't do such self-learning then it's better if you give another thought if it's a good decision to enter in script writing. It's better to ask a specific problem in a specific step which you can't solve and show what you have done to solve it, Instead of questions like teach me how to write a batch script or how to make a script like KMS_VL_AIO.
How about you start reading the KMS_VL_ALL script menu part and try to apply it, and if you don't understand some part then mention that part and ask. or do you want someone to spoon feed you?
This. Plus, you were given a very comprehensive tutorial on how to make a cmd menu that executes basic tasks. If you're still waiting for spoon-feeding - you're taking on the wrong hobby.
Brother @NST_Adventure please have a look upon this by AveYo : Code: https://gist.github.com/AveYo/0f9e52da11f490435faa5ec091bd33e9
@NST_Adventure : So, how far you got dear ? Did you have a look There! It tells us where to start! Start with basics. KMS_VL_AIO is not a great idea to start with. A batch script largely run multiple commands in a batch, one after other, to accomplish various task(s) & troubleshooting. Don't start with them. First of all try to run single commands with .cmd / .bat files. For eg. (i) Open Notepad & type the following in two lines, one after other Code: sfc /scannow pause (ii) Save the file changing the .txt extension to .bat or .cmd (iii) double click the file & just see what happens! Get a good idea & understanding of the commands, switches & syntax. One day we will be through! Thanks. ...
Hi everyone this is my mistake sorry! With this tutorial: I successfully create cmd menu but i got another problem After choose then cmd are execute command after that why the menu reappeared twice??? I have this problem and idk how to resolve this Note: Not Understand? No Worries I Will Drop A SS Later Best Regards NST_Adventure
Glad to know that you have got somewhere. Share your script so that everybody can look into that. Thanks. ...
Code: @ECHO OFF CHOICE /C ABCDN /N /T 10 /D C /M "Format drive A:, B:, C:, D: or None?" IF ERRORLEVEL 1 SET DRIVE=drive A: IF ERRORLEVEL 2 SET DRIVE=drive B: IF ERRORLEVEL 3 SET DRIVE=drive C: IF ERRORLEVEL 4 SET DRIVE=drive D: IF ERRORLEVEL 5 SET DRIVE=None ECHO You chose to format %DRIVE% Syntax: CHOICE [ /C choices ] [ /N ] [ /CS ] [ /T timeout /D choice ] [ /M text ] Description: This tool allows users to select one item from a list of choices and returns the index of the selected choice. Parameter List: /C choices Specifies the list of choices to be created. Default list for English versions is YN /N Hides the list of choices in the prompt. The message before the prompt is displayed and the choices are still enabled. /CS Enables case-sensitive choices to be selected. By default, the utility is case-insensitive. Note: DOS and NT Resource Kit versions use /S instead /T timeout The number of seconds to pause before a default choice is made. Acceptable values are from 0 to 9999. If 0 is specified, there will be no pause and the default choice is selected. Note: DOS and NT Resource Kit versions use /T:default,timeout instead. /D default Specifies the default choice after timeout seconds. Character must be in the set of choices specified by /C option and must also specify timeout with /T. Note: DOS and NT Resource Kit versions use /T:default,timeout instead. /M text Specifies the message to be displayed before the prompt. If not specified, the utility displays only a prompt. The ERRORLEVEL is set to the offset of the index of the key that was selected from the set of choices. The first choice listed returns a value of 1, the second a value of 2, and so on. If the user presses a key that is not a valid choice, the tool sounds a warning beep. If tool detects an error condition, it returns an ERRORLEVEL value of 255. If the user presses CTRL+BREAK or CTRL+C, the tool returns an ERRORLEVEL value of 0. When you use ERRORLEVEL parameters in a batch program, list them in decreasing order.
Don't listen to this person, they are hazing you. That will be annoying and cost you a bunch of time and will be annoying.