File Rename


Renames the specified file(s). This can also be done manually by going to File→Rename.

\\ File_Rename\\ ! /EXISTING_FILE_NAME=ALL_FILES\\ ! /NEW_FILE_NAME=\\ ! /USE_SEARCH_REPLACE=FALSE\\ ! /SEARCH_FOR=\\ ! /REPLACE_WITH=\\ ! /REMOVE_FILE_PATH=FALSE\\ ! /RENAME_STATIC_CALIBRATION_FILES=TRUE\\ ; \\ 


Parameters

NOTE: Since users use similar naming conventions for C3D files, Visual3D stores the file path from where the C3D file was original loaded to differentiate between different files. Only remove the file path if you have a very good reason, and if you do, be careful when comparing between subjects, sessions, conditions, etc.

Example1: Search/Replace

The search/replace function in this command can be used to rename the C3D files in the workspace.

In the following example, the C3D files have the name “Sub01_Walk001.c3d” but they are renamed to “Sub01_NEW_NAME001.c3d”.

File_Rename
! /EXISTING_FILE_NAME=ALL_FILES
! /NEW_FILE_NAME=
/USE_SEARCH_REPLACE=TRUE
/SEARCH_FOR=WALK
/REPLACE_WITH=NEW_NAME
! /REMOVE_FILE_PATH=FALSE
! /RENAME_STATIC_CALIBRATION_FILES=TRUE
;


Back to Pipeline Commands Reference