bat 获取最后一个斜杠之后的字符

2025-04-27 10:45:45
推荐回答(1个)
回答1:

set mypath="C:\aaa\bbbb\abc.exe"
for %%a in (%mypath%) do echo %%~nxa