|
|
本帖最后由 pcl_test 于 2016-8-10 20:53 编辑
求个网页链接的批处理?
某文件夹下有许多文件和子文件夹,内有许多.HTML文件,源文件中有如下一些链接,
不知批处理能否实现按等号后的部分,添加文件路径,有四个字符的,添加文件路径为前两个字符,有五个字符
的,也添加文件路径为前两个字符,有六个文件名的,添加文件路径为前三个字符,等号前有两种格式
原来链接 改后链接
<a href="http://zisea.com/content.asp?uni=279a7"> <a href="../../htm/27/279a7.html>
<a href="http://zisea.com/content.asp?uni=279a9"> <a href="../../htm/27/279a9.html>
<a href="http://zisea.com/content.asp?uni=2B359"> <a href="../../htm/2B/2B359.html>
<a href="http://zisea.com/content.asp?uni=095815"> <a href="../../htm/095/095815.html>
<a href="http://zisea.com/content.asp?uni=095315"> <a href="../../htm/095/095315.html>
<a href="http://zisea.com/zsCONTENT.aSP?uni=21F31"> <a href="../../htm/21/21F31.html>
<a href="http://zisea.com/zsCONTENT.aSP?uni=5C9B"> <a href="../../htm/5C/5C9B.html>
不知表达是否清楚,先谢了, |
评分
-
查看全部评分
|