联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off :: 添加PATH - padd.bat (find.exe) if %1#==# goto end if %1#==l# goto atlast :: 插入path首 path|find /i "%1">NUL if errorlevel 1 path=%1;%path% goto end :: 插入path尾 :atlast path|find /i "%1">NUL if errorlevel 1 path=%path%;%1 :end
USAGE: /as path] Adds the semicolon-separated paths to the system path. /au path] Adds the semicolon-separated paths to the user path. /rs path] Removes the semicolon-separated paths from the system path. /ru path] Removes the semicolon-separated paths from the user path.
Originally posted by tireless at 2008-7-27 11:45 PM: 这个? wmic ENVIRONMENT where "name='path' and username='<system>'" set VariableValue="%path%;c:\test" 执行速度很慢啊