Internet and Network Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Internet and Network >

Internet and Network Commands

DLF. - Download File

Previous Top Next


MiniRobotLanguage (MRL)

 

DLF. Command

Download File

 

 

Intention

 

This command can be used to download a File or a WEB-Site from Internet to a local Filename. It an be used for all sorts of links.

 

 

 

 

Syntax

 

 

DLF.[P1][|P2[|P3][|P4]

 

 

Parameter Explanation

 

P1 - URL

P2 - Output Filename

P3 - (optional out) Variable for Success-flag 1/0.*

P4 - (optional in ) Password for Download

 

 

 

Example

 

'***********************************

' DLF.-DEMO

'***********************************

VAR.$$FIX=?desktop\testfile2.zip

PRT.-------------------------

' We work from Variable to Stack if one Parameters are specified.

' This is the filename of the downloaded file

PUS.$$FIX

' This is the URL of the file to download

VAR.§§URL=http://www.it-berater.org/download/down.pl?ID=1

DMP.4

DLF.§§URL

DMP.4

IVV.($tos$>800000)

 GSB.del

ELS.

 MBX. Could not download that file. File on Desktop contains error message.  

EIF.  

PRT.-------------------------

' We work from VAR to VAR if two Parameters are specified. Resulting Bytes are left on stack

' This is the URL of the file to download

VAR.§§URL=http://www.it-berater.org/download/down.pl?ID=1

DLF.§§URL|$$FIX

GSB.del

DMP.4

PRT.-------------------------

' We work from VAR to VAR if two Parameters are specified.

' This is the URL of the file to download

VAR.§§URL=http://www.it-berater.org/download/down.pl?ID=1

DLF.§§URL|$$FIX|§§BYT

PRT. Bytes loaded: §§BYT

PRT.-------------------------

DMP.

MBX.Ready

END.

 

:del

MBX. File is on your desktop - will be deleted now.

DEL.$$FIX

RET.

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also:

 

    DLV. - Download-to-Variable

    CFU. - Copy-From-URL

    URL. - Split URL