标题: [文本处理] [已解决]没问题的bat加了一行,就提示 delims=" was unexpected at this time. [打印本页]
作者: hentai87 时间: 2020-6-4 23:31 标题: [已解决]没问题的bat加了一行,就提示 delims=" was unexpected at this time.
- @echo off
- pushd "%~dp0"
- for /f "delims=:" %%a in ('findstr /n msmg设置 .\set.txt') do set n=%%a
- for /f "skip=%n% delims=" %%b in (.\set.txt) do (
- dir /b %%b\Mount\Install\Windows\servicing\Packages\*.mum >1_Get_Full_Packages.txt
- )
- pause
复制代码
没问题- @echo off
- pushd "%~dp0"
- for /f "delims=:" %%a in ('findstr /n msmg设置 .\set.txt') do set n=%%a
- for /f "skip=%n% delims=" %%b in (.\set.txt) do (
- dir /b %%b\Mount\Install\Windows\servicing\Packages\*.mum >1_Get_Full_Packages.txt
- )
- pause
- findstr /I /V "en-us zh-cn" 1_Get_Full_Packages.txt >2_Get_Main_Packages.txt
- pause
复制代码
有问题,提示 delims=" was unexpected at this time.
奇怪阿,后面的代码也没问题,就算有问题,怎么会导致前面的代码也失效了呢
作者: hentai87 时间: 2020-6-4 23:45
知道了,是没弄ANSI
欢迎光临 批处理之家 (http://www.bathome.net/) |
Powered by Discuz! 7.2 |