
CODE: [Copy to clipboard]@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
| Quote: | |
|
| Quote: | |
|
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |