r/Batch • u/DatRetroBoi • Dec 30 '21
Variables
can i make vars to set as certain values when called, like when the program is run, or when something is input into the prompt? or something like that?
edit: sorry i'm quite new to batch
edit: solved
0
Upvotes
2
u/Shadow_Thief Dec 30 '21
You can use
setto set variables, either by setting the value directly (set "variable_name=value") or by getting user input (set /p "variable_name=Prompt string: ").https://ss64.com/nt/set.html