Transfer Engine (SDK) 
Note:  
The Multi part parameter for the UploadAysnc is currently limited to 
servers that support this operation, due to the need to recombine the 
files after the upload of each part has completed. As of September 2002, 
GlobalSCAPE's Secure FTP server was the only server to support this 
function.
Downloading items asynchronously
  
Description  
Use the DownloadAsync method to download a file or folder to the local hard drive 
asynchronously. An asynchronous download starts and then returns control to the script 
before the transfer finishes. This allows you to perform many simultaneous transfers because 
the method does not wait for the download to end. Immediately after you call this method 
subsequent methods in your script will be called, so be careful when timing certain events. 
If DownloadAsync encounters a problem when trying to complete its task, it will not throw 
a COM, ATL, or VB error. DownloadAsync will also adhere to your max global and per 
site settings. 
Syntax  
Object.DownloadAsync(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") 
MySite.Host = "ftp.cuteftp.com" 
MySite.Connect 
MySite.DownloadAsync "/pub/cuteftp/english/*", "c:\temp"
 downloads all files in the pub/cuteftp folder   
Note: 
You can call the DownloadAsync method many times sequentially in a 
script. Each call, in turn, opens a new data connection to the specified 
197 






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