miketwais

work up

使用bat将优盘中的dig加到系统环境变量

第一次使用bat批处理,记录下,方便查阅。

@echo off
::当前盘符
set curPath=%cd%
set digPath ="%curPath%tool\dig"
set PATH=%PATH%;%digPath%
wmic ENVIRONMENT where "name='path' and username='<system>'" set VariableValue="%path%;%curPath%tool\dig"
exit

保存为run.bat文件,目录格式为:

run.bat

tool

  --dig

  --**

posted @   MasonZhang  阅读(286)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示