Jump to content
LaunchBox Community Forums

Moving BIN/CUE into Folders


earthprime

Recommended Posts

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.

Link to comment
Share on other sites

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"

 

 

Link to comment
Share on other sites

  • 2 years later...
  • 1 year later...

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

Link to comment
Share on other sites

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 :D

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"

 

Link to comment
Share on other sites

Posted (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 by Tackskull
Link to comment
Share on other sites

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

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