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.UrlSaveFile

Top


MiniRobotLanguage (MRL)

 

AIC.UrlSaveFile

Save file from URL

 

Intention

 

The AIC.UrlSaveFile command downloads a file from a given URL and saves it to a specified local path. Useful for downloading images, documents, or any web resources.

 

Syntax

 

AIC.UrlSaveFile|$$URL|$$LocalPath[|$$RetVar]

 

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

P2 - $$LocalPath - Local path where to save the file

P3 - $$RetVar (optional) - Variable to store success/failure result

 

Example

 

' Download an image from URL

AIC.UrlSaveFile|https://example.com/image.png|C:\Images\downloaded.png|$$Result

DBP.$$Result

 

' Download with variable paths

AIC.UrlSaveFile|$$ImageURL|$$SavePath|$$Success

IFE.$$Success|EQ|OK|File downloaded

 

Related Commands

 

- AIC.DownloadImage - Download image file

- AIC.DownloadFile - Download any file

- AIC.HttpRequest - HTTP request