
幫修改下替換文本字符串的bat代碼
執(zhí)行后得到結(jié)果D:wwwrootxxx.cn403.html D:wwwrootxxx.cn404.html D:wwwrootxxx.cnindex.html D:wwwrootxxx.cnplay.html D:wwwrootxxx.cnsitemap.html D:wwwrootxxx.cn1213jsmodeclikeindex.html D:wwwrootxxx.cn1213jsmodeclikescala.html 如何把結(jié)果中D:wwwroot 替換成 www.替換成/每行尾部有空格 去掉怎么改一下代碼 得到我需要的格式的結(jié)果我想要的結(jié)果是www.xxx.cn/403.htmlwww.xxx.cn/404.htmlwww.xxx.cn/index.htmlwww.xxx.cn/play.htmlwww.xxx.cn/sitemap.htmlwww.xxx.cn/1213/js/mode/clike/index.htmlwww.xxx.cn/1213/js/mode/clike/scala.htmlnclick="copycode($('code0'));">復(fù)制代碼
- @echo off & setlocal EnableDelayedExpansion
- for /f delims= %%i in ('dir /a/s/b/on *.html') do (
- set file=%%~fi
- set file=!file:/=/!
- echo !file! >> sitemap.txt
- )

