Ok my question is about how to take user input and use it for the program.
I am makeing a menu for a dos boot disk.
Here is a example of what I am trying to do.
Also is there a way to allow pass commands to the program?Code:@echo off :begin echo Welcome to chuckie's boot disk Echo. echo 1. Fdisk 2. Clean1k 3. Delpart 4. Format 5. fdisk Echo. echo 6. findram 7. move 8. chkdisk 9. debug 10. edit Echo. echo 11. scandisk 12.sys 13. mscdex 14. ext 15. attrib Echo. echo 16. restart 17. extract 18. help echo Select What Program You Would Like To Run.. (user input) %1 cls IF %1==1 Fdisk IF %1==2 Clean1k IF %1==3 Delpart ETC... IF %1==17 help.bat goto error REM This is for if the enter a incorrect number :error You did not enter a correct number. Hit any key to try agin pause cls goto begin
Example:
At user promt
Be able to do like
4 c: /y
format c: /y
Thank you for any help you can give..