Answers for "windows print variable environment"

2

windows print env variable

echo %PATH%
Posted by: Guest on November-10-2020
0

windows echo environment variable

// In a Windows console (cmd)
// All environnement variables:
set
// A single one:
set MY_VAR
// Or:
echo %MY_VAR%

// Sets an environment variable called MY_VAR
set MY_VAR=hello
   
// Display
set MY_VAR
-> MY_VAR=hello
   
// Unset an environment variable
set MY_VAR=
   
// Display
set MY_VAR
-> Environment variable MY_VAR not defined

// Display the PATH environment variable
echo %PATH%
-> PATH=xxxxxxx
Posted by: Guest on January-27-2021

Code answers related to "windows print variable environment"

Browse Popular Code Answers by Language