Windows Command Line - Environment Variable

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 HKCU\Environment /F /V variable_name

image-20201225205225424

posted @ 2020-12-25 20:54  晨风_Eric  阅读(112)  评论(0编辑  收藏  举报