Create rules to move files on your SystemLink server so other applications, such
as Data Indexing and Data Navigation, can access the files directly. When
you move files from your SystemLink server to another location, you can no longer access
them from the SystemLink server.
Before you can move a file on the server, you
must transfer files to your server.
You can transfer files programmatically or
manually:
-
Transfer files with the File API in
LabVIEW. Refer to Transferring Files to the Server to learn
more.
-
Transfer files with the HTTP API.
Refer to the File Service HTTP API documentation to learn more.
- Transfer files with the Python API. Refer to the Python API documentation to
learn more.
- Manually upload files in File Viewer.
-
In NI SystemLink Web Application, in
File Viewer, click
.
-
Click
New.
-
Enter a name for the rule and select the default destination to move the file
to.

Note
To change the default destination, launch
NI SystemLink Server Configuration on the server and click
FileMoving. Click Browse
to locate and set the default destination. To create a new destination, you
must add a configuration JSON file to C:\ProgramData\National
Instruments\Skyline\Data\FileMoving on your server.
-
Specify a relative path. This is a path that uses the properties of the file to determine where the file will move.
An example relative path is
<Month>\<Day>\<Year>, representing the creation date of the file. This relative path will create folders within the root path that correspond
to the specific month, day, and year values of the files. The following is a list of properties you can use as placeholders
in relative paths.

Note
Property placeholders are case-sensitive.
-
Day
-
Month
-
Year
-
Name
-
Extension
In addition to these properties, you can specify a relative path using any custom property you define for files in
File Viewer.
-
Specify whether you want to move the file from one location to another or copy the file to the new location.

Note
If more than one rule applies to a file, and at least one rule specifies to delete the original file, the file service applies
all other rules before deleting the file.
-
Specify whether you want the rule to replace invalid characters in file path names with underscores.
-
Specify how you want the rule to work if there is a conflict; for example, if a file of the same name already exists in the
new location.
-
Specify
Rule Matching Metadata for the file moving rule.
Rule Matching Metadata refers to any values you want the file service to search for to determine which files to move. If a file's metadata matches
a value you specify, the file service moves that file.
-
Click
Create.