Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
str = "The is the end of line" 如何在上面的字符串融合批处理脚本中搜索最后一个单词“line”。
试试这个:
@echo off &setlocal for %%i in (The is the end of line) do set "TheEnd=%%i" echo(%TheEnd%