Code: Select all
ObjRelease(ListedGames)
ListedGames := Object()
Loop, Files, %SearchFolder%\*.*, FR
{
SplitPath, A_LoopFileFullPath, , , , FileNameNoExt
ListedGames.Push(A_LoopFileFullPath)
For Index, ListedGame in ListedGames
{
If (ListedGame = A_LoopFileFullPath)
{
ListedGames[A_Index].FileNameNoExt := FileNameNoExt
MsgBox, % ListedGames[A_Index].FileNameNoExt
}
}
}