vbs实现压缩文件夹的脚本
时间:2022-05-20 09:40:53|栏目:VBS|点击: 次
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colFolders = objWMIService.ExecQuery _
("Select * from Win32_Directory where ")
For Each objFolder in colFolders
errResults = objFolder.Compress
Wscript.Echo errResults
Next
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colFolders = objWMIService.ExecQuery _
("Select * from Win32_Directory where ")
For Each objFolder in colFolders
errResults = objFolder.Compress
Wscript.Echo errResults
Next
上一篇:VBS文本文件操作实现代码
栏 目:VBS
下一篇:没有了
本文标题:vbs实现压缩文件夹的脚本
本文地址:http://www.codeinn.net/misctech/202355.html