CuteFTP Professional User s Guide 
`Don't forget to initialize all necessary fields for MySite : host name, user, password, etc.
MySite.Connect 
MySite.Synchronize "/pub/myfolder", "C:\mysitesfiles", 0, 1 
 This will perform a local mirror, overwriting any matching filename.
 Simple synchronize using minimal parameters 
Set
 MySite = CreateObject("CuteFTPPro.TEConnection") 
`Don't forget to initialize all necessary fields for MySite : host name, user, password, etc.
MySite.Connect 
MySite.Synchronize "/pub/myfolder", "C:\mysitesfiles", 2, 0 
 This will perform full mirror (both), overwriting older files when a matching filename is 
found.
 Slightly more complex synchronize routine used to synchronize bookmarks. Uses variables 
for
the path names
strRemotePath = "\Favorites" 
strLocalPath = "C:\Documents and Settings\username\Favorites" 
`Don't forget to initialize all necessary fields for MySite : host name, user, password, etc.
MySite.Connect 
            
If
 (
Not 
(MySite.IsConnected)) 
Then
            MsgBox "Unable to connect to server:" + MySite.Host  
            
End
if
  
MySite.Synchronize strRemotePath, strLocalPath, 2, 3, 0, 1, 1, 0, 1 
 Performs a full mirror, skips matching filenames, transfers only the first file if multiple files 
are found with the same name but different case, applies to subfolders, ignores symbolic 
links, does not remove destination files if the source doesn t exist (N/A when dealing with 
dual mirror), and prompt prior to deleting anything (N/A when dealing with dual mirror).
MsgBox "DONE!" 
`Alert me to the completed task
MySite.Disconnect
 `Disconnects from the site when done
MySite.Close
 `Close the Transfer Engine process
`A full synchronizaiton VB subroutine:
Sub
Sync
() 
190 






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