File Management

Using the File Management operation available in Target, you can cut and paste, copy and paste, or delete files in the defined location. Use this operation in conjunction with recipes, trend graph data, alarm and operation logs, as well as any other files you want to manage.

Block
Text

copyFileOrFolder($Enums.Storage.LocalStorage,
       1                    2
SOURCE_PATH, $Enums.Storage.SDCard, TARGET_PATH,
     3                4                 5
$Enums.FileConflictAction.KeepBoth);
                 6

1: File Management

2: Source Storage

3: Source Full Path

4: Destination Storage

5: Destination Full Path

6: When Conflict

[File Management] Select the file management operation.
Block
  • [CopyPaste]

  • [CutPaste]

  • [Delete]
Text
  • 'copyFileOrFolder'

  • 'moveFileOrFolder'

  • 'deleteFileOrFolder'

[Source Storage]

Select the storage for the copy, cut, or delete operation.

Block
  • [LocalStorage]
  • [SDCard]
  • [USBStorage]
Text
  • '$Enums.Storage.LocalStorage'

  • '$Enums.Storage.SDCard'

  • '$Enums.Storage.USBStorage'

Note: The [LocalStorage] storage option is available for ST6000 Series or STM6000 Series only.
[Source Full Path] Define the full path to the file or folder for the copy, cut, or delete operation.

When Using SP5000 Series Open Box (Windows 10 IoT Enterprise Model), IPC Series, or PC/AT

[Source Full Path] is in the paths in [Destination Folder (USB Storage)] or [Destination Folder (SD Card)].
For example, when the [Source Full Path] is “logginggroup01” and [Destination Folder (USB Storage)] is "C:\USBStorage", the full path is “C:\USBStorage\logginggroup01”.
[Destination Folder (SD Card)] and [Destination Folder (USB Storage)] are located in [System Architecture] ➞ [Target01] ➞ [Function] tab ➞ [Options] sub tab ➞ [Preferences].
[Destination Storage]

Select the destination storage for the paste operation.

Block
  • [LocalStorage]
  • [SDCard]
  • [USBStorage]
Text
  • '$Enums.Storage.LocalStorage'

  • '$Enums.Storage.SDCard'

  • '$Enums.Storage.USBStorage'

Note:
  • Defining the [Destination Storage] is not required for the delete operation.
  • The [LocalStorage] storage option is available for ST6000 Series or STM6000 Series only.
[Destination Folder] Define the full path for the paste operation.

When Using SP5000 Series Open Box (Windows 10 IoT Enterprise Model), IPC Series, or PC/AT

[Destination Folder] is in the paths in [Destination Folder (USB Storage)] or [Destination Folder (SD Card)].
For example, when the [Destination Folder] is “logginggroup01” and [Destination Folder (USB Storage)] is "C:\USBStorage", the full path is “C:\USBStorage\logginggroup01”.
[Destination Folder (SD Card)] and [Destination Folder (USB Storage)] are located in [System Architecture] ➞ [Target01] ➞ [Function] tab ➞ [Options] sub tab ➞ [Preferences].
Note: Defining the [Destination Folder] is not required for the delete operation.
[When Conflict]

Define how to handle file conflicts.

Block
  • [Overwrite] – Paste and overwrite file.
  • [Skip] – Do not paste file.
  • [KeepBoth] – On pasting file, original file remains as is, and pasted file name is appended with “_001”.
  • [ConfirmationMessage] – Display a message to confirm deleting the original file and overwriting with new file.
Text
  • '$Enums.FileConflictAction.Overwrite'

  • '$Enums.FileConflictAction.Skip'

  • '$Enums.FileConflictAction.KeepBoth'

  • '$Enums.FileConflictAction.ConfirmationMessage'

Note: Defining the [When Conflict] property is not required.
Note: Draw a numeric display or other object to monitor the File Management operation status and to avoid conflict with other file associated operations. For example, associate the status of the File Management object (Target01.Preferences.FileManagement.Status) to the [Current Value] source property in a numeric display object to monitor the file operation status.