Rename Files

This example workflow shows how to edit a filename or rename a file completely. The new files are written into the same folder (in this example the workflow data area). When the option "delete source files" is checked in the "Transfer Files (Table)" node, the files with the original filename will be removed and only the renamed files are in the folder.


This is a companion discussion topic for the original entry at https://kni.me/w/ZD7HfYgBcAbxS1Dm

I would like to utilize this workflow to rename files in a folder by removing characters from the right end of the file name. For example if the file is named MyTextFile_20220204_112355.txt I would like to rename the file to MyTextFile.txt and remove the _20220204_112355 from the file name. Can you demonstrate how I would accomplish this?