Windows Command Line

Windows Command Line - Environment Variable

Display All system Variable

SET

image-20201225203745876

Display A particular Variable

Echo %Variable_name%
or
set variable_name

image-20201225204145456

Set A Variable

setx variable_name "Path"

image-20201225204634691

Delete A variable

HKCU - Windows Registry tree that contains configuration data that is used by Current User /v is followed by variable name

REG delete HKCUEnvironment /F /V variable_name

image-20201225205225424

相信未来 - 该面对的绝不逃避,该执著的永不怨悔,该舍弃的不再留念,该珍惜的好好把握。
原文地址:https://www.cnblogs.com/keepmoving1113/p/14190769.html