Okidoki done
GameList v0.1 :p
Gamelist checks your local hdd and usb drivers for a Games folder.
For eacht drive it outputs the containing games with the size of the game to a logfile (gamelist.txt)
Name and size are separted by a dot(.)
Every list starts with the folder the games are in (i.e. Hdd1:\games\)
The content of gamelist.txt looks like this (obviously)
Current Folder: hdd1:\games\
Assassins Creed 2.5335
Avatar.3126
Brutal Legend.6075
Dantes Inferno.5652
Dirt 2.6573
dragons age.6588
MX vs ATX.5854
NFS Shift.3804
Rogue Assassin.2301
Shaun White Snowboard.4433
Venetica.4822
Wanted WoF.6924
Bourne Conspiracy.5105
cod-mw2.6942
OpenJazz360.5
cod-mw.6621
cod-waw.6485
saboteur.5396
metro.5273
Bioshock2.6591
FinalFantasyXIII.15236
Dragon age awa.5459
Wolfenstein.6468The output on the screen states wich dir it's working on.

for those interested; get the size of a directory(folder)
__int64 TransverseDirectory(string path)
{
WIN32_FIND_DATA data;
__int64 size = 0;
string fname = path + "\\*.*";
HANDLE handle = FindFirstFile(fname.c_str(),&data);
if(h != INVALID_HANDLE_VALUE)
{
do {
if( (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) )
{
// skip . and ..
if( strcmp(data.cFileName,".") != 0 &&strcmp(data.cFileName,"..") != 0)
{
// subdir so go recursive :)
size += TransverseDirectory(fname);
}
}
else
{
LARGE_INTEGER dsize;
// filesize +2GB support hence 2 DWORD, convert to int64
dsize.LowPart = data.nFileSizeLow;
dsize.HighPart = data.nFileSizeHigh;
size += dsize.QuadPart;
}
}while( FindNextFile(handle,&data) != 0);
FindClose(handle);
}
return size;
}