
| Quote: | |
|
CODE: [Copy to clipboard][ Last edited by willsort on 2006-6-6 at 19:41 ]@echo off
set match=
for /f "skip=1" %%N IN (\\user01\up$\name.ini) do (
if "%ComputerName%"=="%%N" (
echo 本台机器特殊!执行其他命令
call \\user01\up$\up1.bat
set match=true
)
)
if not "%match%"=="true" (
@echo 此机执行正常命令
call \\user01\up$\up2.bat
)
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |