Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to use set /p in bathc

Set /p is used to create a "variable", for example:
set /p example={Enter text here}
Then the user would have to type something and you could use the text that they entered to make something, for example:
echo %example%
Or:
if '%example%'=='{any number}' {any command}
 
PREVIOUS NEXT
Tagged: #set #bathc
ADD COMMENT
Topic
Name
7+9 =