Thirteen Years of Service
Posts: 390
Threads: 26
[Batch] Is it possible? 11-05-2011, 02:30 PM
#1
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.
Hack Community - My 2nd family, my best friends, my 2nd school.
====================
====================
====================
====================
====================
Latvija.
•
Thirteen Years of Service
Posts: 19
Threads: 0
RE: [Batch] Is it possible? 11-05-2011, 09:10 PM
#3
I think you can,some commands have a /y parameter that you can add to auto-accept
•
Thirteen Years of Service
Posts: 109
Threads: 26
RE: [Batch] Is it possible? 11-06-2011, 12:36 AM
#4
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).
•