@echo off
set match=
for /f "skip=1" %%N IN (1.ini) do (
if "%ComputerName%"=="%%N" (
echo 本台机器特殊!执行其他命令
call \\user01\up$\up1.bat
set match=true
)
)
if not "%match%"=="true" (
@echo 此机执行正常命令
call \\user01\up$\up2.bat
)
@echo %dbg% off&setlocal enabledelayedexpansion
:: code by qasa copyright@qknet 1:31 2007-9-24
title 判断机号执行程序 作者:qasa
mode con cols=50 lines=10&color a
for /f "tokens=16 delims= " %%i in ('ipconfig /all^|find /i "Host Name"') do (
set set=%%i
set set=!set:~0,-1!
)
for /f "delims=" %%j in (SET.INI) do (
set se=%%j
if !se! equ !set! goto a
)
start "" df /install
exit /b
:a
for %%1 in (*.exe) do (
if %%1 neq df.exe start /wait "" %%1
)
goto :eof