Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: FtpZip 11102
User168

Posts: 3
Member Since: 04/21/00
posted March 7, 2002 8:56 PM

Code:
ftp1.type = ftpzip
ftp1.retrieve remotefilename.zip, localdirectory

When a local directory is specified, immediately get error 11102 - no transfer. If a complete local path and filename is specified, the transfer works but the zip file is not uncompressed. What is correct code to get the zip file uncompressed to the specified local directory? (ftp tool 1.7.0.0)
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 8, 2002 3:22 PM


Hi,
The following worked for me.
-ken

Option Explicit
  Const remoteFile = "test.zip"
  Const host = ""
  Const user = ""
  Const pass = ""

Private Sub Command1_Click()
  Ftp1.Login host, user, pass
  Ftp1.Type = ftpZip
  Ftp1.Retrieve remoteFile, "c:\ZipTest\" & remoteFile
  Ftp1.Logout
End Sub

K M Drake
Dart Tech Support
User168

Posts: 3
Member Since: 04/21/00
posted March 22, 2002 1:45 AM

I tried the above - the zip file is received to the new filename, but it does not get unzipped. Shouldn't the local target be a directory and not a filename? That way the file(s) in the zip file have a place to be unzipped to. Or does the zip file get retrieved and left intact, and then unzipped (to the same directory or other paths specified in the archive), so that on the local disk there is both the zip file and its unzipped contents?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 22, 2002 11:44 AM


Hi,
When you run our Dartnostics utility, do you see DartZip.dll?
There will be a new folder created with the name of the zip file, and the contents will be extracted into that. So, in my example, the contents would be unzipped to:
c:\ZipTest\test.zip\
and test.zip itself would not be stored.
-ken

K M Drake
Dart Tech Support
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX