Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello All,
I have a requirement to rename a file by removing the
Old File Name: Orders-2021_06_29_153733
New file name: Orders-20210629153733
Basically, I should remove the underscores from the file name.
Also, when I have multiple files to copy, tFileList ->Iterate -> tFileCopy only copies one file, though the iterate count displays the number of files.
Hi
I guess it is because the same file name replace existing file.
If you want to remove the underscores from the old file name, set the destination filename as:
(String)globalMap.get("tFileList_1_CURRENT_FILE").replaceAll("_","")
Regards
Shong
Hi
I guess it is because the same file name replace existing file.
If you want to remove the underscores from the old file name, set the destination filename as:
(String)globalMap.get("tFileList_1_CURRENT_FILE").replaceAll("_","")
Regards
Shong
Thanks a lot @Shicong Hong