Board logo

标题: [文本处理] 如何修改该批处理在导出的文本内容前面有4个空格? [打印本页]

作者: 控场    时间: 2019-11-16 18:04     标题: 如何修改该批处理在导出的文本内容前面有4个空格?

  1. FOR /L %A IN (1,1,1000) DO ECHO ^<ResponseRule Match="http://seer.61.com/resource/fightResource/pet/swf/%A.swf" Action="http://seer.61.com/resource/fightResource/pet/swf/%A.swf" Enabled="true" /^> >> test.html
复制代码
我想在导出的文本内容中“<ResponseRule”的前面有4个空格,请问如何修改
(本人纯萌新)
作者: Batcher    时间: 2019-11-16 19:20

test1.bat
  1. @echo off
  2. (for /l %%a in (1,1,10) do (
  3.     echo     ^<ResponseRule Match="http://seer.61.com/resource/fightResource/pet/swf/%%a.swf" Action="http://seer.61.com/resource/fightResource/pet/swf/%%a.swf" Enabled="true" /^>
  4. ))>"test.html"
复制代码





欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2