Table Of Contents

Moving Files on the Server

Last Modified: April 2, 2019

Create rules to move files on your SystemLink server so other applications, such as DataFinder Server, can access the files directly. When you move files from your SystemLink Server to another location, such as a DataFinder Server, 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 in one of two ways:
  • 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.
  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.
  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