Transfer Engine (SDK) 
2.  
After a Wait() function has timed out, check the STATUS of the transfer   In 
this scenario, use the program (or script) logic to keep trying after a Wait times out 
when the transfer is still in the TRANSFERRING state. In other words, your polling 
for the termination status has timed out, but not necessarily the transfer itself, so you 
keep going. 
In the following example, you wait up to 10 hours for the transfer, and if that times 
out, you check the status of the transfer. If it is still TRANSFERRING, you  o
d  it 
again (please note the last two conditional statements): 
Example 
  
 Do
     strResult = strataFTP.
Wait(  1, 36000000 )
   Loop While ( strResult <> "CANCELED") and ( strResult <> 
"FINISHED" ) and 
        ( strResult <> "ERROR" ) and ( strResult <> 
"SKIPPED" ) and 
        ( strResult <> "SUSPENDED" ) and ( strResult <> 
"BLOCKED" ) 
 Alternatively, you can take the more p
  ositive outlook of continuing on while the transfer 
task is either WORKING, CONNECTING, or TRANSFERRING: 
Example  
   
Do
     
  strResult = strataFTP.
Wait(  1, 36000000 )
   Loop While ( strResult = "TRANSFERRING") or ( strResult 
= "WORKING" ) or 
     
     ( strResult = "CONNECTING" ) 
3.  Wait forever, or until the transfer reaches some termin t
a ion point. Most transfers 
eventually either FINISH or receive an error from the server; but there is a minor 
chance that the transfer in the queue is perpetually stuck in a "TRANSFERRING" 
state. This strategy might be considered a little riskier than the first two: 
Example 
   
  strResult = strataFTP.
Wait(  1, 0 )
M
Y SCHEDULED SCRIPTS NO LONGER RUN WHILE NOT LOGGED IN
If you have installed the Security Update for Microsoft Data Access Components (MDAC) 
Security Patch MS03 033 you may have problems using scripts to connect to secure sites.  
You can get your scripts to work again by moving your certificate file. The CuteFTP 
certificate files generally resi e
d  in a specific user s folder, like: 
C:\Documents and 
e
S ttings\jsmith\Application Data\GlobalSCAPE\CuteFTP 
Professional\Security\certs.crt
. 
235 






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