我需要将压缩文件夹解压缩到另一个位置,在所有文件都从源zip文件夹中传输之后,我将编辑目标文件夹的名称,以包含字符串:_complete。
一旦所有文件都被传输,源文件= abc.zip目的地= abc_complete
我在vb中有一个代码,但我不太确定如何进一步增强它以满足我的要求。我还需要将它作为批处理文件运行。
'The location of the zip file.
ZipFile="C:\Test.Zip"
'The folder the contents should be extracted to.
ExtractTo="C:\Tes
我使用Php提取具有以下结构的zip文件。
-/
|- db_data.ini
|- upload/
|- aa/
|- Many files here
|- bb/
|- Many files here
|- cc/
|- Many files here
|- ETC.
在upload文件夹中,还有许多其他文件夹包含大量文件。我需要的是将upload目录解压缩到我的网站upload目录中。
我所使用的代码如下:
$zip
我创建了一个应用程序,它使用类ZipArchive (php中的标准)中的方法extractTo(),并在Windows7上的本地主机apache服务器上进行了测试,没有任何问题。但是当我在一些unix生产服务器上尝试之后,它就抛出了
Warning: ZipArchive::extractTo(): Permission denied in /path/to/file.php on line 27
我甚至为应用程序使用的每个文件夹设置了chmod为0777,但它没有帮助。
你知道出什么事了吗?
我在这里遇到麻烦了,你能告诉我如何解压缩vbscript中的密码保护字段吗?我有一个运行良好的代码,但它每次运行时都会询问密码。
pathToZipFile="C:\folder.zip"
extractTo="C:\"
set sa = CreateObject("Shell.Application")
set filesInzip=sa.NameSpace(pathToZipFile).items
sa.NameSpace(extractTo).CopyHere(filesInzip)
我需要一个代码,它不会在运行中询问密码,请帮助,
我在VBA上工作,我需要解压在同一文件夹中的所有zip文件。我需要能够提取每个压缩文件,以提取到它各自的文件夹(文件夹需要创建的基础上压缩文件名)。
基于下面的代码,我能够解压第一个压缩文件,然后遇到"myFile - Dir“代码的错误
有人能帮帮忙吗?
Sub Unzip()
Dim oApplicationlication As Object
Dim MyFolder As String
Dim MyFile As String
Dim ZipFile As Variant
Dim ExtractTo As Variant
Application.ScreenUpdating
在从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 an
我想上传一个zip文件并使用php将其解压缩到一个文件夹中。我正在使用以下代码:
$zip = new ZipArchive;
if ($zip->open($filename) == TRUE){
$zip->extractTo('Articles/');
$zip->close();
$isql="update articles set a_file='$newfile'
我正在尝试解压另一个zip文件中的zip文件,以获取第二个zip文件中的xml文件。
这个文件的最大挑战是zip文件中的文件总是不同的,因此是未知的。因此,我创建了一个函数,将存档档案列表放入文本列表中。然后使用此列表解压每个文件,并从第二个zip文件中的xml文件中提取所需的信息。
到目前为止,这是我的代码。
//Set the date
$day = date("mdY");
echo $day."<br>";
//URL to download file from for updating the prescription table
//$
我对bash或vbs知之甚少。我正在尝试制作一个脚本,它将自动解压缩一个名为“Dungeon.zip”的压缩,其中包含了我编写的一个小游戏。我想将其解压缩到一个名为地牢的文件夹中,该文件夹与zip文件所在的目录相同。我使用了来自的代码,并用我的文件替换了这些文件:
strZipFile = "dungeon.zip"
strUnzipped = "dungeon\"
Sub UnZip(ExtractTo,ZipFile)
Set fso = CreateObject("Scripting.FileSystemObject")
I
基本上,我试图解压缩一个zip文件中的一些特定文件(其中有很多垃圾子文件夹)。
问题是,只有最后一个子文件夹包含我想要的文件。除另一个子文件夹外,其他子文件夹不包含任何文件。
下面是我目前使用的代码:
ZipFile="C:\Test.zip"
ExtractTo="C:\"
Set fso = CreateObject("Scripting.FileSystemObject")
If NOT fso.FolderExists(ExtractTo) Then
fso.CreateFolder(ExtractTo)
E