Tuesday, August 20, 2013

CMD DOS how to delete erase an environmental variable

CMD DOS how to delete erase an environmental variable

set theVariable=

This will remove it from the environment variables

C:\>set aVar=fred and barney

C:\>echo %aVar%
fred and barney

C:\>set aVar=

C:\>echo %aVar%
%aVar%

C:\>


Note:  to show set variables:  set ""

No comments:

Post a Comment