| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: Ftp1.Store "htm.zip", "c:\temp\*.htm" ? |
| raymng From: HK, USA Posts: 28 Member Since: 03/08/03 |
posted February 19, 2004 9:45 AM Hi All, How can I add multiple files into a ZIP file and then upload it to the FTP site? Does this work? Ftp1.Store "htm.zip", "c:\temp\*.htm" Thanks. Raymond |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 19, 2004 9:53 AM That should work if you set the Type properly before calling Store: Ftp1.Type = ftpZip Hope this helps! |
| raymng From: HK, USA Posts: 28 Member Since: 03/08/03 |
posted February 19, 2004 10:13 AM Hi Tony, How about if I want to add several files that come from different paths into one ZIP file and then upload it. For example, "c:\abc.exe", "c:\temp\123.htm" How can I do that by using the store method? Thanks! Raymond |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 19, 2004 10:20 AM Not automatically. In order to do that you would have to get the Zip Compression tool and use a Zip control to create the file first, then store it using Type ftpImage. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 19, 2004 10:24 AM I just made an incorrect statement. I tried it and it didn't work, the reason it didn't was because I had a space after the comma. It should work if there is no space: "c:\abc.exe","c:\temp\123.htm" |
| raymng From: HK, USA Posts: 28 Member Since: 03/08/03 |
posted February 19, 2004 10:28 AM Does it mean there is no way to add multiple files into a ZIP file and then upload it by using ONLY the DartFTP control? Raymond |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 19, 2004 10:32 AM No. See my second reply above. I was wrong. It does work. |
| raymng From: HK, USA Posts: 28 Member Since: 03/08/03 |
posted February 19, 2004 10:34 AM So I can add as many files as I want like this, right? "c:\abc.exe","c:\temp\123.htm","d:\ma.doc","e:\vb.htm", ... Raymond |
| raymng From: HK, USA Posts: 28 Member Since: 03/08/03 |
posted February 19, 2004 10:35 AM Ftp1.Type = ftpZip Ftp1.Store "c:\abc.exe","c:\temp\123.htm","d:\ma.doc","e:\vb.htm", ... |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 19, 2004 11:26 AM Yes. That should work. If it doesn't please let me know. |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|