- @echo off
- set "str=fdkljdlkdfdkljgflkk gffkljflkbathome;lkdf;ljkdg;lkfdbathome;dlfld;lkl;kl;l,.da/u/kbathomefdaffas"
- set "str=%str: =n#a#t#u#r#e%"
- set "str=%str:bathome= %"
- for /f "tokens=1-4 delims= " %%i in ("%str%") do (
- call :conv "%%i"
- call :conv "%%j"
- call :conv "%%k"
- call :conv "%%l"
- )
- pause&exit
- :conv
- set "s=%~1"
- set "s=%s:n#a#t#u#r#e= %"
- echo %s%
复制代码 没有人会用到“n#a#t#u#r#e”吧。除了我...o(∩_∩)o... |