CuteFTP Professional User s Guide 
    
You should test your script from the command line while logged in. You can also 
write to the event viewer or a local text file to debug a script when run on system 
startup if necessary. Here is a sample script which includes event viewer logging of 
transactions. 
    
Your script should not contain Message Box functions or any other function that 
requires user input or shows a window. Windows cannot display these prompts while 
the system is not logged in. Set your overwrite actions under CuteFTP's global 
options to  Always Overwrite  to avoid any overwrite prompts, or pre define 
various rules to cover various overwrite scenarios. 
Const EVENT_SUCCESS = 0  
Set objShell = Wscript.CreateObject("Wscript.Shell")  
objShell.LogEvent EVENT_SUCCESS,"AT Loaded me"  
Set MySite= CreateObject("CuteFTPPro.TEConnection")  
MySite.Option ("ThrowError") = False  
MySite.Host = 
"ftp://anonymous:user@user.com@ftp.globalscape.com/pub
/cuteftp"  
objShell.LogEvent EVENT_SUCCESS,"vars set"  
MySite.Connect  
objShell.LogEvent EVENT_SUCCESS, "connected"  
MySite.Download "index.txt", "c:\temp"  
objShell.LogEvent EVENT_SUCCESS, "downloaded"  
MySite.Disconnect  
MySite.Close  
230 






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