Table Of Contents

Moving Files on the Server

Last Modified: June 26, 2020

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.
  1. In NI SystemLink Web Application, in File Viewer, click » File Moving Rules .
  2. Click New.
  3. Enter a name for the rule and select the default destination to move the file to.

    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.

  4. 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.

    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.
  5. Specify whether you want to move the file from one location to another or copy the file to the new location.

    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.

  6. Specify whether you want the rule to replace invalid characters in file path names with underscores.
  7. 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.
  8. 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.
  9. Click Create.

Recently Viewed Topics