You can also send (Download) through a script that references the RCPDOWNLOAD80.DLL library as in the following example:


 

'Declarations

Dim DL_dll as Object         'ActiveX server object

Dim szFile as String         'recipe full path

Dim rc as Boolean                 'return Code

 

'create the Activex server object for download

Set DL_dll = CreateObject("rcpDownload80.clsDownLoad")

 

'Recipe to send

'if on network station, you must specify a network share

szFile = "c:\programmi\Crickets Automation\" & _

             "X Vision 8. 0\Projects\MioProgetto\" & _

             "Recipes\MiaRicetta1"

 

'exec download

rc = DL_dll.download(szFile)

 

 

Note: the download is always completed. If an error occurs during the processing or sending of a recipe element, the element is simply ignored, while the correct elements are still transferred. The Download method returns TRUE in the absence of errors, FALSE otherwise.