So i found a situation that is a little bit complex (at least for me!).
I have a bunch of files created by a system that cannot offer the final file names, therefore I need to rename them before they can go to the last distribution point. All files come out as:
FOLDER NAME: full_filename
>full_filename.abc
>full_filename_1.abc
>full_filename_2.abc
>full_filename_3.abc
>full_filename_4.abc
>full_filename_5.abc
>full_filename_6.abc
>full_filename_7.abc
>full_filename_8.abc
>full_filename_9.abc
I need to replace _# with some constant information, at the end of the process the files should look like this:
FOLDER NAME: full_filename
>full_filename_200.abc
>full_filename_400.abc
>full_filename_450.abc
>full_filename_750.abc
>full_filename_1200.abc
>full_filename_1700.abc
>full_filename_2200.abc
>full_filename_3500.abc
>full_filename_5000.abc
>full_filename_6500.abc
I can see how the_# files can be easily replaced, however what if one of the original file names contains a _1, wouldn't that get replaced as well? What about the one that doesn't have _#? SInce the rename will be consistent I would like to bulk rename any files, i would just need to run the tool or a command line every time.
Any ideas would be greatly appreciated