windows-nt/Source/XPSP1/NT/tools/buildstrlen.cmd
2020-09-26 16:20:57 +08:00

152 lines
3.1 KiB
Batchfile

set __BUILDMACHINE_LEN__=0
set foo=%__BUILDMACHINE__:~-25%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=25
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-24%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=24
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-23%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=23
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-22%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=22
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-21%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=21
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-20%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=20
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-19%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=19
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-18%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=18
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-17%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=17
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-16%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=16
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-15%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=15
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-14%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=14
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-13%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=13
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-12%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=12
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-11%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=11
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-10%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=10
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-9%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=9
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-8%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=8
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-7%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=7
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-6%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=6
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-5%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=5
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-4%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=4
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-3%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=3
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-2%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=2
) else (
goto :eof
)
set foo=%__BUILDMACHINE__:~-1%
if "%foo%" == "%__BUILDMACHINE__%" (
set __BUILDMACHINE_LEN__=1
) else (
goto :eof
)