Back
Close

Computing with Data

elgeish
120K 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
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants