Transfer Engine (SDK) 
Description 
Use the Disconnect method to end an event in progress. It is normally used to stop a file 
transfer.  
Syntax
Object.Disconnect()
Example
Set MySite = CreateObject("CuteFTPPro.TEConnection")  
MySite.TransferURLAsync  
MySite.Disconnect
Configuration Notes
    
Disconnect is not the same as the standard FTP command QUIT. Instead it is simply a 
command to stop the current transfer task. You can issue a QUIT command prior to 
invoking Disconnect by using the RemoteCommand function.  
    
A socket disconnect (more brutal than QUIT) to an FTP server occurs automatically 
after all transfers and other commands have finished. This is similar to the Connect 
command, which is implicitly called when a transfer method is invoked.  
    
The example above uses the TransferURLAsync command to pass the TE an FTP file 
location to download. Since the TransferURLAsync command is asynchronous, you 
could called TransferURLAsync multiple times consecutively.  
    
What happens if you issue a Disconnect command after issuing multiple 
TransferURLAsync commands? The last called TransferURLAsync request is the one 
that is cancelled.  
Closing the Transfer Engine
  
Description  
Use the Close function to exit the Transfer Engine.  You can include parameters to only exit 
on certain conditions.  
Syntax  
Object.Close (BSTR bstrParameter)
Parameters  
""(default empty), 
Closes TE (all tasks will be 
"CLOSE", "EXIT"   stopped) 
"EXITNOPENDING"  Closes TE if no pending 
tasks available
Note: 
You can use any number of spaces or underscores inside these 
parameters. For example, "exit no pending" and 
"_EXIT_NO_PENDING_" are the same.
   
Example  
195 






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