Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

Open CMD and type:

setx foo bar

This sets the variable globally, but doesn't apply it to that instance of CMD!

Open NEW cmd and type:

echo %foo%

Eg:

C:\Windows\system32>setx foo bar

SUCCESS: Specified value was saved.

C:\Windows\system32>echo %bar%
%bar%

C:\Windows\system32>echo %foo%
%foo%
C:\Windows\system32>echo %foo%
bar
  • No labels

1 Comment