Download File

Downloads a file from internet and saves it at the specified path.

Download file designer

Designer Properties#

  1. Url The url of the resource to be downloaded.
  2. Directory Path The directory path where to save the downloaded file.
  3. File Name The name of the file to be saved. If not specified, it is inferred from url.
  4. Output file The path of the downloaded file. The file path is either the DirPath + FilePath or the DirPath + name inferred from url.

Properties#

Download file properties

General#

See Designer Properties above.

General Properties#

See General Properties.

Misc#

See Misc.

Out Error#

See Out Error.

Result#

  1. Output file The path of the downloaded file. The file path is either the DirPath + FilePath or the DirPath + name inferred from url.

Example#

Download, Rename and Remove File

In this example, we download a rpack file, rename it to "newName123.rpack", get all the files from "ProjectsOutput"(the directory where the file was renamed) and display a message box with all the files available in "ProjectsOutput". After this, we remove the file and display a message box with all the available file in "ProjectsOutput".