zoukankan
html css js c++ java
VBS 版批量重命名
Code
1
rem 读取配置文件
2
Dim config
3
config
=
"
conf.txt
"
4
set
fso
=
createobject(
"
scripting.filesystemobject
"
)
5
set
a
=
createobject(
"
scripting.dictionary
"
)
6
set
file
=
fso.opentextfile(config)
7
do
while
file.atendofstream
<>
true
8
m
=
m
+
1
9
a.add m,file.readline
10
src
=
a(m)
11
RenameSubPage src
12
loop
13
file.close
14
Set fso
=
Nothing
15
msgbox
"
操作已完成
"
,
4096
,
"
文件重命名
"
16
17
Sub RenameSubPage(strURL)
18
Dim path
19
For i
=
19
To
100
20
path
=
Replace(strURL ,
"
.html
"
,
"
_
"
&
i
&
"
.html
"
)
21
If fso.fileexists(path)
=
True Then
22
target
=
path
&
"
.tmp
"
23
fso.movefile path , target
24
Else
25
'
do nothing
26
End If
27
Next
28
End Sub
29
注释: conf.txt 文件内容如下:
D:\a\b\c.html
D:\d\e\f.html
查看全文
相关阅读:
树莓派配置
《C#微信开发系列(Top)-微信开发完整学习路线》
Git基础使用教程(仓库初始化,源码clone,源码push)
《Cron表达式详解》
《CSS实现单行、多行文本溢出显示省略号》
《C#多线程编程实现方式》
《SQLServer删除重复数据的方法》
《java提高数据导入效率优化思路》
《如何使用Javascript判断浏览器终端设备》
《动手实现一个网页加载进度loading》
原文地址:https://www.cnblogs.com/infozero/p/1376355.html
最新文章
php编译 :virtual memory exhausted: Cannot allocate memory
编译安装PHP7并安装Redis扩展Swoole扩展
git clone出现的error: The requested URL returned error: 401 Unauthorized
KC5500在新电脑编译不成功
C5500工程调试失败问题
VS2010 VC++创建.rc资源文件(转)
xlwings备忘
Linux高性能服务器编程
python语法记录
Python中Swithch Case语法实现
热门文章
VS注释快捷键
GridLayout崩溃问题
单例模式的八种写法比较
Java中静态代码块、构造代码块、构造函数、普通代码块
Android启动页空白的问题
Mac Android 生成签名
Android 刘海屏的适配总结
Android ViewGroup中checkbox抢占焦点问题
android 友盟和阿里sdk冲突
Mac openCV环境搭建
Copyright © 2011-2022 走看看