CuteFTP Professional User s Guide 
Note:
Any time you call a Transfer function, the connect function is called 
indirectly. It is recommended you explicitly invoke the Connect function 
though it is not necessary. You can always use the IsConnected property 
to determine whether you are connected at any given time.
Downloading files 
Description  
Use the Download
 method to transfer a file or folder from a remote location to your 
local hard drive.  
Syntax 
Object.Download (BSTR strRemoteName ,BSTR strLocalName , 
long nMultiPartNumber)
Parameters 
This is optional, use it only if you want to change 
the destination name or path for the downloaded 
strLocalName 
files or folder. You can use absolute or relative 
paths with or without wildcards.
  
This is the path to the remote item you are downloading. 
strRemoteName 
You can use absolute or relative paths with or without 
wildcards. 
Use this to split the download into multiple parts.  The 
nMultiPartNumber 
default value = 1.  The value specifies the number of parts 
used for the download. 
Example  
Set MySite = CreateObject("CuteFTPPro.TEConnection")  
`Specify user, pass, host, and connect as normal...  
MySite.Connect `Recommended: call connect first  
`next line changes to a predetermined folder so you can 
use a relative path in the download method  
MySite.RemoteFolder = "/c:/Inetpub/ftproot/Temp/Temp/"  
MsgBox (MySite.RemoteFolder)  display current remote 
folder  
MySite.Download "agent.ini", "c:\temp\agent1.ini" 
 now verify downloaded ok  
If CBool(MySite.LocalExists ("c:\temp\agent1.ini")) Then  
MsgBox "File downloaded OK."  
End If
Configuration Notes 
178 






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