【已解決】批處理怎樣把特殊字符串寫入文件最后由 chouxia 于 -6-3 09:33求助批處理想實現的效果是txt下如下內容findstr /i /x !sedname!=!sednumb! d:ooo.txtnclick="copycode($('code0'));">復制代碼
- echo ^@echo off>d:111.txt
- echo setlocal enabledelayedexpansion>>d:111.txt
- echo set sedname=kkk>>d:111.txt
- echo set sednuma=1>>d:111.txt
- echo set sednumb=2>>d:111.txt
- echo set vdisk=d:>>d:111.txt
- echo set txtname=ooo>>d:111.txt
- echo findstr /i /x ^^!sedname^^!=^^!sednumb^^! %vdisk%!txtname!.txt >>d:111.txt