CuteFTP Professional User s Guide 
  MySite.Upload "c:\archive.zip"  upload the new archive, 
then check to see if it made it up to the server. 
  if not CBool(MySite.RemoteExists("\archive.zip")) then 
     MsgBox "Failed to Upload, Exiting!" 
  Else 
     MsgBox "Success!" 
  End If 
  MySite.Disconnect 
  MySite.Close 
Else 
MsgBox "Compression and Encryption Failed, Exiting!" 
End If 
Note: 
You can optionally protect the FTP login by connecting with SSL, SSH2 
or OTP using CuteFTP Professional s Transfer Engine (GlobalSCAPE s 
Secure FTP Server 2 supports SSL, OTP, and SSH2 logins). Use the 
protocol property to set the connection type prior to calling MySite.Host 
and MySite.Connect. 
Retrieving a folder listing 
Description 
Use the GetList method to download folder listings. 
Syntax 
Object.GetList(BSTR bstrPath, BSTR bstrLocalFile, BSTR 
bstrFormat, BOOL *pVal) 
Parameters 
The remote path to be listed. Leave it empty if 
bstrPath 
its the current path. 
Specifies a local file name where the listing can 
bstrLocalFile 
be saved. 
Can be used to format the listing. If left empty, 
a raw listing will be returned. You can specify 
bstrFormat 
%NAME, %DATE, and %SIZE as return 
values in a string. 
Example 
Set MySite = CreateObject("CuteFTPPro.TEConnection") 
MySite.Host = "ftp.cuteftp.com/pub" 
MySite.Connect 
202 






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

ftp web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved