回复 2# hankerer - @echo off
- set "aa=OK"
- set "bb=OK"
- if "%aa%"=="OK" (
- if %bb%==OK (set TestResult=OK) else set TestResult=NG
- ) else set TestResult=NG
- echo %TestResult%
- pause
复制代码
- @echo off
- set "aa=OK"
- set "bb=OK"
- if "%aa%.%bb%"=="OK.OK" (set TestResult=OK) else set TestResult=NG
- echo %TestResult%
- pause
复制代码
|