![]() |
|
[Batch] Is it possible? - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Coding (https://sinister.ly/Forum-Coding--71) +--- Thread: [Batch] Is it possible? (/Thread-Batch-Is-it-possible) |
[Batch] Is it possible? - SPG.WoLF_TSC - 11-05-2011 Is something like this possible? Like you enter a letter in the SET command, and you don't need to press enter to confirm it. RE: [Batch] Is it possible? - DeffoN - 11-05-2011 PM jacob he's the BEST Batch programmer i know ![]() I am not sure i understand this but i think it is posible. RE: [Batch] Is it possible? - Golliath808 - 11-05-2011 I think you can,some commands have a /y parameter that you can add to auto-accept RE: [Batch] Is it possible? - ReaperX - 11-06-2011 You Wouldnt use SET. You Would use the 'choice' Command. ------------------------------------------------------ Example: choice /c [possible choices] /n You Could Use 1-9 or a-z as Possible Choices. ------------------------------------------------------ To Check What Was Pressed You Use 'errorlevel'. ------------------------------------------------------ Example: choice /c 123abc /n if errorlevel 6 [command] if errorlevel 5 [command] if errorlevel 4 [command] if errorlevel 3 [command] if errorlevel 2 [command] if errorlevel 1 [command] Possible Choice "c" is the same as Errorlevel "6" Because it is the 6th Possible Choice. Letters Always Go LAST as Possible Choices. ------------------------------------------------------- I Tried Explaining that the Best I Could. If Its Not clear Enough go to the CMD and Type "choice /?" (No Quotes). |