Transfer Engine (SDK) 
Use the RemoteExists method to verify that a remote file or folder exists. BstrName should 
be the full path.  
Syntax 
Boolean Object.RemoteExists(BSTR bstrName)
Parameters 
Return values
true
  File or folder does exist  
false  File or folder does not exist
Example  
Set MySite = CreateObject("CuteFTPPro.TEConnection")  
`Initialize all necessary fields for MySite : host name, 
user, password, etc.  
R = 
MySite.RemoteExists
( "/pub/user/file.txt")  
If (R) Then  
MsgBox "File exists on remote side"  
Else  
MsgBox "File doesn t exist on remote side"  
End if 
Note: 
If using an "if not" conditional, use CBool instead of boolean as the 
return type. 
Correct:  
if not CBool(
MySite.RemoteExists
(strRemote)) then 
MsgBox "Error! " & MySite.ErrorDescription 
Incorrect:  
if not 
MySite.RemoteExists
(strRemote) then 
MsgBox "Error! " & MySiteErrorDescription 
Checking for a local file or folder  
Description  
Use the LocalExists method to verify that a local file or folder exists. BstrName 
should be the full path.
  
Syntax
Boolean Object.LocalExists(BSTR bstrName);
Parameters 
185 






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