我正在编写用于分发的vb.net脚本,但我遇到了一个问题。该脚本无法使用COM引用的Shell32库提取压缩文件,而不触发防病毒,因为我正在构建一个可执行文件。我想知道是否有人知道更好的方法来解压vb.net中的文件,或者只是简单地知道一种方法,即杀毒软件不会删除我的脚本,因为这将是一个分布式程序。
禁用杀毒软件不是一个解决方案,所以不建议这样做。
发布于 2014-07-26 13:18:58
尝尝这个
Private Sub unzip()
Dim sc As New Shell32.Shell()
'Declare the folder where the files will be extracted
Dim output As Shell32.Folder = sc.NameSpace("D:\unzip")
'Declare your input zip file as folder .
Dim input As Shell32.Folder = sc.NameSpace("D:\zipFiles\")
'Extract the files from the zip file using the CopyHere command .
output.CopyHere(input.Items, 4)
End Subhttps://stackoverflow.com/questions/24967611
复制相似问题