Transfer Engine (SDK) 
Example  
Set MySite = CreateObject("CuteFTPPro.TEConnection")  
MySite.Host = host  set all relavant host, login, pass, 
etc. properties  
MySite.Download "aaa", "c:\temp"  
MsgBox "Size: " & 
MySite.TotalSize
 & ", speed: " & 
MySite.Speed
 & ", time: " & 
MySite.TimeElapsed
Retrieving file information 
Description  
Use the FileType, FileSize, and FileTimeModified properties to retrieve information 
about a particular item.  
Syntax
long Object.FileType  
long Object.FileSize  
string Object.FileTimeModified
Return values  
For FileType: 
1  Directory 
2  File 
3  Link 
For FileSize: 
the size in bytes of the file  
For FileTimeModfied: 
mm/dd/yyyy hh:mm:ss 
Example  
Set fserv = CreateObject("CuteFTPPro.TEConnection")  
strRemote = "somefilename.ext"  
if cbool(fserv.RemoteExists(strRemote)) then  
MsgBox "Remote file/folder info: Type=" & 
fserv.FileType
& ", Size=" & 
fserv.fileSize
 & ", Date=" & 
fserv.FileTimeModified
 & strNL & "(type:1 dir,2 file,3 
link)"  
else  
MsgBox "Error! " & fserv.ErrorDescription  
End If
225 






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