monquatch
Junior Member
Posts: 3
Registered: 9/3/2007
Member Is Offline
|
| posted on 4/12/2008 at 06:13 PM |
|
|
Convert very large file
Hi,
I'm attempting (unsuccessfully) to convert a 2.1 GB .tar file to .zip format, using the same methodology I've successfully used on smaller .tar
files. Shouldn't this be possible?
Here is the code:
-----
Set objFSO = CreateObject("Scripting.FileSystemObject")
PATHDATA = "folderA"
Set objFolderData = objFSO.GetFolder(PATHDATA)
Set Zip = CreateObject("SoftComplex.Zip")
For Each objFileZip in objFolderData.Files
PATHZIP = PATHDATA + objFileZip.Name
PATHZIP2 = Replace(PATHZIP, ".tar", ".zip")
Zip.Convert PATHZIP, "zip", PATHZIP2, "", false
Zip.Open PATHZIP2
Zip.Read
'other stuff here, such as Zip.Selected(), Zip.UnzipSelected, etc...
If Err.Number <> 0 then
Response.Write Err.Description
Error.Clear
End If
Next
Set objFileZip = Nothing
Set Zip = Nothing
Set objFolder = Nothing
Set objFolderData = Nothing
Set objFSO = Nothing
-------
The error on the line, "Zip.Read" is "Cannot open file "". The system cannot find the path specified", which means the convert process wasn't
successful, though it didn't throw an error. Like I said, this same code is working on smaller files. I don't know, maybe the .tar file's
corrupt...
Any ideas?
Thanks.
|
|
|
|