AIC. - Artificial Intelligence Command

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AIC. - Artificial Intelligence Command >

AIC. - Artificial Intelligence Command

AIC.DownloadFile

Top


MiniRobotLanguage (MRL)

 

AIC.DownloadFile

Download any file from URL

 

Intention

 

The AIC.DownloadFile command downloads any type of file from a URL. General-purpose file download with progress tracking and error handling.

 

Syntax

 

AIC.DownloadFile|$$URL|$$SavePath[|$$RetVar]

 

P1 - $$URL - URL of the file to download

P2 - $$SavePath - Local path to save the file

P3 - $$RetVar (optional) - Variable for download status

 

Example

 

' Download a document

AIC.DownloadFile|https://site.com/doc.pdf|C:\Docs\file.pdf|$$Status

DBP.$$Status

 

' Download with variables

AIC.DownloadFile|$$FileURL|C:\Downloads\$$FileName|$$Result

 

Related Commands

 

- AIC.DownloadImage - Download images

- AIC.UrlSaveFile - URL file save

- AIC.HttpRequest - HTTP requests