回复 1# hahaxiong - @echo off
- set "aaa=1234567890"
- set "bbb=aa\tt\789"
- for %%i in ("%bbb%") do (
- for /f "delims=" %%j in ('powershell -c "'%aaa%'.split('%%~nxi')[0]"') do (
- for /f "delims=" %%k in ('powershell -c "'%bbb%' -replace '[^\\]*$'"') do (
- set "NewStr=%%k%%j"
- )
- )
- )
- echo,%NewStr%
- pause
复制代码
|