Download File
Downloads a file from internet and saves it at the specified path.
#
Designer Properties- Url The url of the resource to be downloaded.
- Directory Path The directory path where to save the downloaded file.
- File Name The name of the file to be saved. If not specified, it is inferred from url.
- Output file The path of the downloaded file. The file path is either the DirPath + FilePath or the DirPath + name inferred from url.
#
Properties#
GeneralSee Designer Properties above.
#
General PropertiesSee General Properties.
#
MiscSee Misc.
#
Out ErrorSee Out Error.
#
Result- Output file The path of the downloaded file. The file path is either the DirPath + FilePath or the DirPath + name inferred from url.
#
ExampleDownload, 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".