Jump to content
LaunchBox Community Forums

Batch Copy Countries Clear Logos to the Autogenerated Playlists in Genres


Recommended Posts

Till it is added as a feature to set Default Clear logos to Autogenerated or repeating playlists, I use this PowerShell script to update them. You can use it to make your own auto update ones when you add a new playlist in the future and avoid the redundant copy paste
Screenbits2024-10-18_010127.thumb.png.d41d585b12d053a1ff4666cfe1fa42e2.png
This script find all folders in images/playlists containing a word like Canada and overwrite in the subfolder the source image:
just open powershell ISE in windows and paste your adapted code since running .ps1 files is disabled by default:
(you can use notepad++ to replace all source folder paths)
ex: 

$sourceFile = "C:\LaunchBox\Images\Playlists\Canada.png"  # Specify the path to your source file

Get-ChildItem -Recurse -Directory -Filter "*Canada" | ForEach-Object {
    $clearLogoPath = Join-Path -Path $_.FullName -ChildPath "Clear Logo"
    if (Test-Path -Path $clearLogoPath) {
        Copy-Item -Path $sourceFile -Destination $clearLogoPath -Force
    }
}

Write-Output "Done."

For all the regions clear logo in platform categories
ex:
 

$sourceFile = "C:\LaunchBox\Images\Platform Categories\Regions.png"  # Specify the path to your source file

Get-ChildItem -Recurse -Directory -Filter "*Regions" | ForEach-Object {
    $clearLogoPath = Join-Path -Path $_.FullName -ChildPath "Clear Logo"
    if (Test-Path -Path $clearLogoPath) {
        Copy-Item -Path $sourceFile -Destination $clearLogoPath -Force
    }
}

Write-Output "Done."

Files attached as txt for copy paste and .ps1 for those who enabled running scripts
Countries.ps1Countries.txtregions.ps1regions.txt

Cheers
NB: Autogenerated playlists don't create corresponding images folders till you select each generated country in Launchbox 
I use the great regions logos from RetroHumanoid and Yorrick36

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...