Jump to content
LaunchBox Community Forums

Change Rom Path With Notepad++ Tutorial


Recommended Posts

Unfortunately right now there is no bulk edit tool for changing the rom path for a bunch of games at one time. We can however use Notepad++ to do this pretty painlessly. Download it here: https://notepad-plus-plus.org/ if you don't already have it, it is free and is an amazing replacement for the version of Notepad that comes with Windows.

Here is a bitbucket feature request for this to vote for:

To start off go to your Launchbox\data\platforms\ folder and look for the .xml file for the platform you want to change the rom locations for. For the purposes of this guide I am using a secondary install of Launchbox I use for tutorials and testing certain things and the only platform xml I have is a Nintendo Entertainment System.xml5924e6e6a6c1c_2017-05-2321_49_06-2xExplorerZ1-E__DownloadedGames_Emulation_Roms_NES.png.46fa9961e3ed49570da94c3557e0b887.png

If you open this xml file will see a whole bunch of stuff but what you are looking for is this line:

<ApplicationPath>E:\Downloaded Games\Emulation\Roms\NES\Adventures of Bayou Billy, The (USA).nes</ApplicationPath>

5924e761d8b9e_2017-05-2321_51_29-H__Emulation_Frontends_LaunchBoxTutorials_Data_Platforms_NintendoEntertainment.thumb.png.d958510bf590c0bb314ac611937fd3df.pngE:\Downloaded Games\Emulation\Roms\NES\ is the location I want to change. The new location I want that changed to is H:\Emulation\Roms\NES\

Here is a screenshot in Launchbox if I right click on the Billy Bayou game and edit, you can see that the rom is located at E:\Downloaded Games\Emulation\Roms\NES\.

5924e82a17241_2017-05-2321_55_02-EditGame.thumb.png.65bf0236ce1ee679b6d693edaf8d4aa0.pngIMPORTANT: Before editing your platform xml file you will have to close Launchbox.

Now to change the paths in Notepad++ go to the Search menu at the top and then Replace. This will open the "Find and Replace" window, you want the Replace tab of this window.

5924e8dcafb83_2017-05-2321_57_44-Replace.thumb.png.9afff8e1c16adc4e94ba4f2b2c62298d.pngIn the "Find what" box you will want to put in the old path which for me is E:\Downloaded Games\Emulation\Roms\NES\

5924e9798846c_2017-05-2322_00_41-Replace.thumb.png.f0e0ae6b20686644e35a1161a096a850.pngThen in the "Replace with" box you will want to put in the new path where your roms are which for me in this example is H:\Emulation\Roms\NES\

5924e9e521c93_2017-05-2322_03_03-Replace.thumb.png.2ad47894cd6d6190930b579f4598c2d7.pngNext you will press the Replace All button on the right hand side of the window, you will see all that the paths in Notepad++ changed. Close the replace tool and save the .xml file.

Note: Because my rom paths were very similar I could have just put E:\Downloaded Games\ and H:\ in my find and replace boxes because that was all needed to be changed. I just wanted to be a bit more simple with this example.

Startup Launchbox and right click a game or two to check that the changes actually applied.

5924eb8cb664a_2017-05-2322_10_06-EditGame.thumb.png.8991934d5d6336ce3b2b59e9f68fb3a8.pngAs you can see it is now changed, start a game and make sure it runs.

If your rom path did not change make sure you closed down Launchbox before editing the platforms xml file.

If your game does not load make sure that your new rom path is correct.

I just did this entire procedure as I wrote this guide step by step and it worked flawlessly so if it does not work for you retrace the steps above.

  • Like 5
  • Thanks 1
Link to comment
Share on other sites

Love notpad++... the regular exspression thibg came in real handy for a couple of things i forget now

Could i add a bunch of platforms with Notepad++ do you think? Although writing this i decided to do 1 at a time. As made the mistake of biting off or than i can chew and missing things before

Link to comment
Share on other sites

13 minutes ago, Thatman84 said:

Could i add a bunch of platforms with Notepad++ do you think?

You probably could if you opened all the platform xml files you wanted to change and instead of pressing the "Replace All" button you press the "Replace All in All Opened Documents" button.

  • Like 1
Link to comment
Share on other sites

  • 4 years later...
On 5/24/2017 at 1:55 AM, Lordmonkus said:

You probably could if you opened all the platform xml files you wanted to change and instead of pressing the "Replace All" button you press the "Replace All in All Opened Documents" button.

Thanks for the tutorial, worked like a charm. The replace…all opened docs” worked as well. Made the whole process even easier. Thanks again. 

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.

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...