- @echo off
- set /p n=要跳过多少个参数:
- echo 初始="1" 2 3 "C:\% a % \%%b%% !c!\h!!e!!llo" 6 7 ""D:\Mother **\wet pussy"" a b c e f g h i j
- call :get_tails list %n% "1" 2 3 "C:\% a % \%%b%% !c!\h!!e!!llo" 6 7 ""D:\Mother **\wet pussy"" a b c e f g h i j
- set list
- @goto :EOF
-
- :get_tails
- @echo off
- set %~1=
- set "cc=%~2"
- set /a cc+=2
- for %%b in (%*) do (
- set /a cc-=1
- set d=&for /f "delims=0123456789c=" %%A in ('set cc') do set d=%%A
- if defined d call set %~1=%%%~1%% %%b
- )
- @goto :EOF
复制代码 再来一个for 的形式,全程靠 SET |