Under Windows 11 24H2 (from May 2025), a serious bug occurs in the Windows shell: When file operations are performed with `IFileOperation`, the progress dialog (`OperationStatusWindow`) appears only on the first call - all subsequent calls no longer show a dialog , even if the actions are performed correctly.❓ What is the problem?🛠️ FAQ: Progress dialog (`OperationStatusWindow`) appears only the first time – Bug in `IFileOperation` on Windows 11 24H21. 💥 Example for reproduction 2. Repeated call with wait time: 3. 🔍 What has already been tested? 4. ✅ Workaround integrated in Q-Dir 5. 📨 Contact & Support 6. 🗓️ Summary: 1.) 💥 Example for reproductionC++-Code:int TestFileOperation ()
{
IFileOperation * pFileOperation = nullptr;
HRESULT hr = CoCreateInstance ( CLSID_FileOperation, nullptr, CLSCTX_ALL, IID_PPV_ARGS ( &pFileOperation )) ;
if ( FAILED ( hr )) return 1 ;
CComPtr<IShellItem> psiFrom = nullptr;
CComPtr<IShellItem> psiTo = nullptr; // Customize example paths!
SHCreateItemFromParsingName ( L "v: \\ Microsoft Visual Studio" , nullptr, IID_PPV_ARGS ( &psiFrom )) ;
SHCreateItemFromParsingName ( L "d: \\ temp" , nullptr, IID_PPV_ARGS ( &psiTo )) ;
if ( psiFrom && psiTo )
pFileOperation->CopyItem ( psiFrom, psiTo, L "Microsoft Visual Studio" , nullptr ) ;
pFileOperation->PerformOperations () ; // the progress dialog appears only the first time
return 1 ;
}
2.) Repeated call with waiting time:TestFileOperation () ; // ✅ progress dialog appears MessageBox ( 0 , 0 , 0 , 0) ; // manual interval TestFileOperation () ; // ❌ no more progress dialog Sleep ( 5000) ; // additional time interval TestFileOperation () ; // ❌ still no dialog 3.) 🔍 What has already been tested?* Fresh COM initialization cycle (newly instantiated `IFileOperation`) * Use of `SetProgressDialog(nullptr)` * Pauses (2+ seconds) and even `MessageBox` for interaction * Different source and destination directories ➡️ No solution without a hack : The progress dialog remains disappeared after the first call. 4.) ✅ Workaround integrated in Q-DirA special hack has been developed in Q-Dir (Quad File Explorer) that systematically works around this bug , allowing the progress dialog to appear as usual for every file operation . If you're developing a program or script with similar behavior, you're likely also affected. It's not your code that's causing the issue , but the internal behavior of Explorer in Windows 11 24H2 . 5.) 📨 Contact & SupportIf you also suffer from this behavior, please write to us – we'll help. A small tip for solving the problem is welcome 😄 6.) 🗓️ Summary:* Affected Windows version : 11 Version 24H2 (from May 2025) * Affected APIs : `IFileOperation`, Drag & Drop, `SHFileOperation` * Problem : Progress dialog only appears on the first call * Solution : Implemented in Q-Dir, request by mail if necessary FAQ 159: Updated on: 2 July 2025 21:31 |
... Q-DIR Homeage

