Back
Close

Computing with Data

elgeish
578.2K views

Command Prompt - Variables

rem To read a variable, use %VARIABLE_NAME%
echo %TMP%

rem Example: the set command
rem Use the set command to set, read, and remove a variable
set X=13
set X
set X=
set X
set PROMPT=%USERNAME%@%COMPUTERNAME% $P$G
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io