UpdateFile
Associated with: DNP3 SCADAPack E outstations and DNP3 SCADAPack Remote E outstations
Security permission required to access this method: Configure
Use this method to replace a file that exists in a DNP3 SCADAPack E outstation in the Geo SCADA Expert database, with a new copy of the file.
This method is the equivalent of updating a file via the Update button on the Configuration Setup window (see Update a File in a SCADAPack E Outstation’s Configuration).
Arguments:
- DstFileName (String)—Specify the name of the file that is to be updated in the Geo SCADA Expert database.
- SrcFileName—Use to specify details about the source of the file that you want to update in the Geo SCADA Expert database. The form that this argument takes differs, depending on the source file’s location:
If the source of the file that is being updated is on disk on the main server, the SrcFileName argument can comprise a string. Use the argument to specify the full path of the relevant file on the main server.
If the source of the file is the client that is calling the method (for instance, if the source is read from a file on the client’s hard disk or from a memory stick) use the SrcFileName argument to specify one of the following:
- A three-element one-dimensional array comprising:
- first element: a byte array containing the updated file content
- second element: a string with the name of the source file (do not include the path)
- third element: the last modified time of the file.
- A single byte array containing the content of the file that is to be updated in the database. This option is deprecated and retained for backwards compatibility.
With a single byte array, the server will time stamp the file with the current time when it updates the file in the database (as the server will not be able to ascertain the last modified time of the file).
- A three-element one-dimensional array comprising: