MultiCommander v14.2 is released!
IFileItemCollection* pFileItems = m_pAppInterface->CreateFileItemCollection();IFileItemCollection* pFileItemsSelected = m_pAppInterface->CreateFileItemCollection();m_pAppInterface->SendMessageToSource( AM_GETFILEITEMS, (WPARAM)pFileItems, MF_ALL); DWORD nCount = pFileItems->Count(); for(DWORD n = 0; n < nCount; ++n) { IFileItem* pItem = pFileItems->GetAt(n); if(pItem && n % 2) { pFileItemsSelected->Add(pItem); } } m_pAppInterface->SendMessageToSource( AM_SELECTFILEITEMS, (WPARAM)pFileItemsSelected, 1); // 0 for Unselect, 1 for Select pFileItemsSelected->Release(); pFileItems->Release();