相关疑难解决方法(0)

使用VBScript从ZIP文件中提取文件

从ZIP文件中提取文件时,我使用以下内容.

Sub Unzip(strFile)
' This routine unzips a file. NOTE: The files are extracted to a folder '
' in the same location using the name of the file minus the extension.  '
' EX. C:\Test.zip will be extracted to C:\Test '
'strFile (String) = Full path and filename of the file to be unzipped. '
Dim arrFile
    arrFile = Split(strFile, ".")
    Set fso = CreateObject("Scripting.FileSystemObject")
    fso.CreateFolder(arrFile(0) & "\ ")
    pathToZipFile= arrFile(0) & ".zip"
    extractTo= arrFile(0) & "\ "
    set …
Run Code Online (Sandbox Code Playgroud)

vbscript zip

10
推荐指数
2
解决办法
5万
查看次数

标签 统计

vbscript ×1

zip ×1