Remove image file suffixes

When downloading and processing different media, ARRM adds suffixes to these files which are useful for many internal ARRM processes.

If however you really want to remove suffixes from this media, make sure you have finished your scraping and manipulations on your chosen system.

These suffixes are:

boxart : -boxart
cartridge: -cartridge
extra1 : -extra1
fanart : -fanart
image: -mix
manual : -manual
map: -map
music : -music
screenshot: -screenshot
video : -video
videomix : -mixvideo
wheel : -wheel
wheelround : -wheelround

If for some reason you want to remove suffixes, you need to

  • Modify manually, via a text editor, in the gamelist.xml file by searching/replacing the desired suffix
  • Apply a renaming Powershell script like the one below:
cd   your_directory_with_your_mix_images
dir  *-mix.png  |  Rename-item -NewName  { $_.Name -replace "-mix","" }
Make sure beforehand that the folder does not contain images without suffixes, otherwise they will be overwritten.
This is why I advise to put in the ARRM settings, one folder per type of image as below:

To run the above scripts, launch the “Windows Powershell” console.
In the Powershell console, position yourself in the image directory where you want to remove the suffix.

Example :

Removing -mix suffix for images located in Z:\share\roms\arcade\media\images folder.

So you have to write this:

cd   Z:\share\roms\arcade\media\images
dir  *-mix.png  |  Rename-item -NewName  { $_.Name -replace "-mix","" }

do the same with the other suffixes

howto_remove_suffix_en.txt · Dernière modification : 2022/09/29 18:42 de nexusone13