earthprime Posted January 16, 2021 Posted January 16, 2021 I have a folder with pairs of bin and cue files. Each bin and cue is named the same, i.e. wipeout.bin wipeout.cue Is there a useful batch file somewhere that can move all files with the same name into a folder? I'm looking for an easy way to move my PSX bin and cue files into folders so I don't have to manually create 1000 folders. Quote
earthprime Posted January 16, 2021 Author Posted January 16, 2021 Solved - for anyone else who might need this. To create folders in the drive using file names as folder names copy the line below exactly: for %i in (*) do md "%~ni" To move files into the folders you created copy the line below exactly: for %i in (*) do move "%i" "%~ni" Quote
Tackskull Posted June 7, 2024 Posted June 7, 2024 hi, I have the same proble. But i don't understand. Where have I to write this code? for %i in (*) do md "%~ni" I opened a terminla with this code and nothing happen, I also tried to make a batch file, and nothing too. Can you be more specific? thanks :D Quote
JoeViking245 Posted June 7, 2024 Posted June 7, 2024 3 minutes ago, Tackskull said: hi, I have the same proble. But i don't understand. Where have I to write this code? for %i in (*) do md "%~ni" I opened a terminla with this code and nothing happen, I also tried to make a batch file, and nothing too. Can you be more specific? thanks Need to execute them from the Windows Command Prompt Window (vs. the Terminal window) If you want to use them inside a batch file, you need to double up the percent symbols. for %%i in (*) do md "%%~ni" Quote
Tackskull Posted June 7, 2024 Posted June 7, 2024 (edited) 2 hours ago, JoeViking245 said: Need to execute them from the Windows Command Prompt Window (vs. the Terminal window) If you want to use them inside a batch file, you need to double up the percent symbols. for %%i in (*) do md "%%~ni" Thanks, it worked. But for the games with multiple track, it create a folder for each single track. Is it possible to create folder only for the .cue files? Edited June 7, 2024 by Tackskull Quote
JoeViking245 Posted June 7, 2024 Posted June 7, 2024 1 hour ago, Tackskull said: Is it possible to create folder only for the .cue files? Sure. Tell to just look for the .cue file instead of all files. for %%i in (*.cue) do md "%%~ni" Quote
Tackskull Posted June 8, 2024 Posted June 8, 2024 Thank you so much, now I created all the folders with the correct name, and with the second command I automatically inserted all the cue files in the right folder. The problem now is that all those multiple tracks bin files remain out from the folder. How can I automatically insert all the track files in the right folder alongside the cue file? thanks again Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.