So i started to learn visual basic but since i don't master anything yet and i'm still learning i've done a couple of things so far in BATCH files:
1) Create a list of the folders inside my GAMEZ dir:
Code:
BLES00319
BLES00604
BLES00917
BLES00759
BLES00659
BLUS30442
BLUS30517
BLES00135
BLES00949
BLES00673
BLES00887
BLES01031
BCAS20107
BLES00914
BLUS30527
BLES00682
BLES00517
BLES00176
BLUS30192
BCUS98229
BLES00697
BLES00820
BLES00875
BLES00683
BLES00464
BLES00962
BLES00237
BLES00773
BLUS30631
BLES01134
BLES00073
2) Created an ini file with the ID and the name of the games that i own so far (named
sample.ini):
Code:
[Section1]
BLES00319 = Brothers in Arms - Hells Highway
BLES00604 = Kane and Lynch 2 - Dog Days
BLES00917 = F1 2010
BLES00659 = Army of TWO - The 40th Day
BLUS30442 = Midnight Club - Los Angeles
BLES00759 = Blur
BLUS30517 = BATTLEFIELD - Bad Company 2
BLES00135 = Stuntman - Ignition
BLES00949 = Need for Speed - Hot Pursuit
BLES00673 = Colin McRae - DiRT 2
BLES00887 = Grand Theft Auto - Episodes from Liberty City
BLES01031 = Call of Duty - Black Ops
BCAS20107 = HEAVY RAIN
BLES00914 = nail-d
BLUS30527 = Test Drive Unlimited 2
BLES00682 = Need for Speed SHIFT
BLES00517 = Just Cause 2
BLES00176 = Need for Speed ProStreet
BLUS30192 = Call of Duty - World at War
BCUS98229 = God Of War Collection
BLES00697 = Borderlands
BLES00820 = BLAZBLUE
BLES00875 = 3D DOT GAME HEROES
BLES00683 = Modern Warfare 2
BLES00464 = FEAR 2 - Project Origin
BLES00962 = Homefront
BLES00237 = Tom Clancys Rainbow Six Vegas 2
BLES00773 = BATTLEFIELD - Bad Company 2
BLUS30631 = Crysis 2
BLES01134 = Bulletstorm
BLES00073 = Burnout Paradise
And finally for those who want something like this, i created a file with the name:
Rename folders to correct name.bat
With this code inside it:
Code:
@echo off
pushd "C:\Users\zylor\Desktop\testar renomear"
for /d %%a in (*) do (
for /f "tokens=1* delims== " %%b in (' find "%%~na" ^< "sample.ini" ') do (
if /i "%%b"=="%%~na" (
echo ren "%%~na" "%%~na_%%c"
)
)
)
popd
pause
Updated the code to case sensitive in folders!
(For this to work correctly you need to put this BATCH file inside your GAMEZ dir and create the database by hand)
When you run this file it will rename all the folders inside GAMEZ to the correct names!
And here is the final result of my current project:
Code:
BCAS20107_HEAVY RAIN
BCUS98229_God Of War Collection
BLES00073_Burnout Paradise
BLES00135_Stuntman - Ignition
BLES00176_Need for Speed ProStreet
BLES00237_Tom Clancys Rainbow Six Vegas 2
BLES00319_Brothers in Arms - Hells Highway
BLES00464_FEAR 2 - Project Origin
BLES00517_Just Cause 2
BLES00604_Kane and Lynch 2 - Dog Days
BLES00659_Army of TWO - The 40th Day
BLES00673_Colin McRae - DiRT 2
BLES00682_Need for Speed SHIFT
BLES00683_Modern Warfare 2
BLES00697_Borderlands
BLES00759_Blur
BLES00773_BATTLEFIELD - Bad Company 2
BLES00820_BLAZBLUE
BLES00875_3D DOT GAME HEROES
BLES00887_Grand Theft Auto - Episodes from Liberty City
BLES00914_nail-d
BLES00917_F1 2010
BLES00949_Need for Speed - Hot Pursuit
BLES00962_Homefront
BLES01031_Call of Duty - Black Ops
BLES01134_Bulletstorm
BLUS30192_Call of Duty - World at War
BLUS30442_Midnight Club - Los Angeles
BLUS30517_BATTLEFIELD - Bad Company 2
BLUS30527_Test Drive Unlimited 2
BLUS30631_Crysis 2
Future developments and ToDo's:
- Create the database automatically without the need of creating it by hand!
I would like to hear opinions to this project!
Everyone's opinion is welcome!
I think i made a cool work so far!
At least we should be able to maintain our games ordered and organized!