我试图让我的程序提取一个 .zip 文件,将其内容交付到一个文件夹中,同时在进度条中显示进度。如果我有点继续让进度条工作,如果“解压缩器”可以切换到另一种形式,我也会很高兴。这是我目前提取的代码:
Dim sc As New Shell32.Shell()
'Create directory in which you will unzip your files .
IO.Directory.CreateDirectory("C:\Users\NikolajBanke\Desktop\Test\Unzipped")
'Declare the folder where the files will be extracted
Dim output As Shell32.Folder = sc.NameSpace("C:\Users\NikolajBanke\Desktop\Test\Unzipped")
'Declare your input zip file as folder .
Dim input As Shell32.Folder = sc.NameSpace("C:\Users\NikolajBanke\Desktop\Test\peace.zip")
'Extract the files from the zip file using the CopyHere command .
output.CopyHere(input.Items, 4)
感谢您为我提供的任何帮助:)