forum

Help with beatmaps

posted
Total Posts
2
Topic Starter
Yolshka
Excuse me my poor english.

So I usually download a bunch of maps ,old and new, and I don't really pay attention to what those maps are.
Therefore I tend to download the exact same beatmap twice, or multiple times even, because I'm dumb.It's pretty annoying, but it probably bothers me more than it really should.
As far as i know osu is deleting duplicates, but I often move my enitre osu folder to somewhere else and it happens.Not sure about how or why they are there for me.
You can't see duplicates while playing, but they are there in your \Songs folder.
So today I finally decided to get rid of those duplicates.
The folders look like this:
Duplicates:
There's no way I'm deleting them one by one ( which isn't that hard bye using ALT+F7 but still) so I decided to create a batchfile which goes like this:
SPOILER
@echo off
setlocal
echo The following beatmaps will be deleted:

dir /a:d .\Songs\*(?)


:CHK
SET /P AREYOUSURE=Are you sure to delete duplicates (Y/[N])?
IF /I "%AREYOUSURE%" NEQ "Y" GOTO DEL


: DEL
echo >>dellog.txt Deleted songs:
dir /a:d /b .\Songs\*(?) >>dellog.txt
cd .\Songs
for /d %%G in (".\*(?)") do rd /s /q "%%~G"
echo Done!
pause
:END



REM for /d %%G in (".\*(1)") do rd /s /q "%%~G"
for /d %%G in (".\*(2)") do rd /s /q "%%~G"
for /d %%G in (".\*(3)") do rd /s /q "%%~G"
.
.
.
.
for /d %%G in (".\*(9)") do rd /s /q "%%~G" -----> These should be in a loop probably, but eeeh >.<

...maybe???
REM

This deletes every duplicate, but the problem is that not only those. It deleted this map for me beatmap Though so far this is the only map that I found that has a name like this.

Apperantly ` rmdir `does not accept wildcards (news for me) nor does `find`, thats why the `for`.
Ive tried using `*(1)` instead of `*(?)` but obviously it wouldn't work if i had more than 2 of the same map.
*(?) on the ohter hand just kills everything.

Is there a way to delete duplicates if you have more than 2,and not delete wierdly named beatmaps?
Also is there a way to check if the name of the beatmap had any integer in it other than the ID ?(So in the bracket on the right side)
I would appriciate any suggestions, because I'm really new to this.

Also here is the file: FILE
You can try using this if you are brave enough. Though it tells you what's going to be deleted, and it also puts them in a txt file.
Only works in your osu folder.
Thank you.
IppE

deadbeat wrote:

General Discussion is for non-osu! related topics.
Please sign in to reply.

New reply