WebGetFile

Downloads a file from a specified address and then saves it locally.

Function Group Execution Windows Embedded Thin Client Mobile Access
WebGetFile File Synchronous Supported Supported Supported Not supported

Syntax

Web Studio Help 2fr function file webgetfile.xml d130080e76 WebGetFile
strURL
The URL (i.e., the Web address) of the file you want to download.
strLocalPath
The complete local file path where you want to save the file.

Returned value

−1 Timeout
0 File not found
1 File saved successfully

Examples

Tag Name Expression
Tag WebGetFile( “http://www.the-internet.com/myfile.txt”, “C:myfile.txt” )
Tag WebGetFile( myURL, myFilePath )

WebGetFile