VBS拷贝和删除文件
上一篇 /
下一篇 2016-02-03 15:07:43
/ 个人分类:自动化测试
Dim fso,f
Set fso=CreateObeject("Scripting.FileSystemObject")
Set f=fso.GetFile("filepath\filename")
f.Move("E:\")
If(fso.FileExists("filepath2\name2")) Then
Set f=fso.GetFile("filepath2\name2")
f.Delete
End If
问题:如果要复制或者
移动到文件夹中提示没有权限,如何处理?
收藏
举报
TAG: