Jump to content
LaunchBox Community Forums

kameo

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by kameo

  1. Some lines of code to automate a bit the process (you have to change the items in bold to match your context) : @echo off for /f "delims=" %%i in ('dir /b /s "..\*.rpx"') do ( FOR /f "tokens=1,2,3,4,5 delims=\" %%a IN ("%%i") do (mklink /H "%%e.rpx" "%%i") ) To put it short, it takes the name of the folder, for me the 5th element (hence the tokens=1,2,3,4,5 and %%E, the 5th element of the set) and make a hardlink between the original rpx name (which is often crap) and a local link to the rpx named properly named with the directory name instead. You can put echo before the mklink command to dry run the script and check it does things properly. If you made a mistake and have to delete the hardlinks, no worries, it won't delete your original files. My path is D:\Arcade\Nintendo Wii U\Roms and the place where I put my hardlink D:\Arcade\Nintendo Wii U\Roms\roms2 I dropped my import.bat file in the hardlink folder (roms2), executed it, went to launchbox and imported. All went fine.
×
×
  • Create New...