Is there a batch file by which i can delete Environment Variable using cmd??
setx TEST "C:\"
Is there a batch file by which i can delete Environment Variable using cmd??
setx TEST "C:\"
You cannot delete an environment variable using setx
, however, you can set it to NULL:
setx TEST ""
However, the variable is still there.
You can delete it using REG
REG DELETE "HKCU\Environment" /v TEST
However, using this approach, changes will not take place immediately.