微笑,关怀。。。

qtp学习笔记---- 压缩文件

上一篇 / 下一篇  2010-01-06 16:09:21 / 个人分类:qtp

'压缩文件
function PressFile()
on error resume next
set ws=createobject("wscript.shell")
set fso=createobject("scripting.FileSystemObject")
dim Pressdate
pressdate=split(date,"-")(0) & split(date,"-")(1) & split(date,"-")(2)
m1=" D:\log\" & pressdate &".rar"
m2=" D:\log\" & pressdate
m3="D:\log\" & pressdate &".rar"
m4="D:\log\" & pressdate
if (fso.FolderExists(m4)) then
mm="WinRAR a -r"&m1&m2
myre=ws.run(mm,1,True)
end if
set fso=nothing
set ws=nothing
PressFile=m3
end function
call PressFile()
 

TAG:

 

评分:0

我来说两句

Open Toolbar