批處理-刪除環境變數

baizhi1867發表於2018-06-26
@echo off
echo delete current path into environmet...
set regpath=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
set evname=BAT_HOME
reg delete "%regpath%" /v "%evname%"  /f
pause>nul

  

轉載於:https://www.cnblogs.com/alexYuin/p/9229010.html

相關文章