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: Problem with Get and zip files
nickmages
nickmages@doncarsys.com

From: Winnipeg, MB Canada
Posts: 6
Member Since: 02/13/04
posted March 12, 2004 4:42 PM

PB6.5: Using the Get method to download a zip file, if I specify a directory\filename the file saves but does not unzip. If I specify only a directory I get a file i/o error. How do I get the file to download, then unzip?

ftp.object.type = 3 (ftpzip)
ftp.object.get('ftp://ftpaddress/filename','c:\localdirectory\localfilename')
 ----File gets downloaded but not unzipped.

ftp.object.type = 3 (ftpzip)
ftp.object.get('ftp://ftpaddress/filename','c:\localdirectory\') (with or without the slash) gets a file i/o error.
nickmages
nickmages@doncarsys.com

From: Winnipeg, MB Canada
Posts: 6
Member Since: 02/13/04
posted March 12, 2004 4:46 PM

Just tried leaving the local directory/file blank so it unzips to the working directory - and it just downloads the file but does not unzip.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 12, 2004 5:04 PM

I just tried the sample listview app and it worked. What happens when you try it?
nickmages
nickmages@doncarsys.com

From: Winnipeg, MB Canada
Posts: 6
Member Since: 02/13/04
posted March 12, 2004 5:12 PM

Like I said, the file downloads but does not unzip when I specify a directory/filename OR leave the entire argument blank and let it download to the working directory and I get a file I/O error when specify a directory but no filename.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 12, 2004 5:20 PM

So you're saying that you used the sample, without changing it, and it didn't work? If so, I don't know why. It works for me. Please verify that you are not changing anything in the sample app and it still doesn't work.

Just to clarify, here is what I did:

1) Ran the app contained in ftp.pbl
2) Logged in to an account that contained a file called "testfile.zip"
3) Double-Clicked "testfile.zip"
4) Selected the folder "c:\test"
5) Clicked "Zip" then hit "Retrieve"
6) When done there was a folder called "testfile.zip" that contained the unzipped files.

nickmages
nickmages@doncarsys.com

From: Winnipeg, MB Canada
Posts: 6
Member Since: 02/13/04
posted March 12, 2004 5:28 PM

Sorry, misunderstanding here, I'm not using the sample app. I've created a window with the ftp tool on it and I'm calling the "Get" method, not Retrieve like the sample app does. All I want to do is Log in, download the file, log out and unzip the file and the help says that I can do this with one line. 

ftpcontrol.object.type = 3 (ftpzip)

Get(ftp://user:pass@ftpaddress/filename,c:\localdirectory)
nickmages
nickmages@doncarsys.com

From: Winnipeg, MB Canada
Posts: 6
Member Since: 02/13/04
posted March 12, 2004 5:33 PM

OMG, it just started working and I didn't change a thing :S

I could not avoid the file i/o error b4, now it unzips fine. Must be because it's friday, thanks for the help. Amazing product/support btw.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 12, 2004 6:59 PM

Thanks!
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX