Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Convert very large file
monquatch
Junior Member

Posts: 3
Registered: 9/3/2007
Member Is Offline
posted on 4/12/2008 at 06:13 PM Reply With Quote
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.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Free Download Free Download
Product Documentation Documentation
Documenation Page
Code Samples
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004