:: isDBCS.cmd - 检查参数中是否含有多字节字符
:: qzwqzw@www.cn-dos.net - 2008-01-05 21:18
@echo off & setlocal EnableDelayedExpansion
set strInput=%*------------------------------
set strInput=%strInput:~0,30%
echo %strInput%> "%temp%\_isDBCS.tmp"
for %%f in ("%temp%\_isDBCS.tmp?") do (
if "%%~zf"=="32" (echo 参数 %* 中不含多字节字符
) else ( echo 参数 %* 中含多字节字符 )
del "%%~f"
)
pause