0

str = "The is the end of line" 如何在上面的字符串融合批处理脚本中搜索最后一个单词“line”。

4

1 回答 1

1

试试这个:

@echo off &setlocal
for %%i in (The is the end of line) do set "TheEnd=%%i"
echo(%TheEnd%
于 2013-04-08T11:13:50.713 回答