Medium
Operating Systems
✓ Solution Verified by Community (0+ upvotes)
How to fix error error-bad-file-type in Windows 11
ERROR_BAD_FILE_TYPE = 222
Fix based on community reports and expert analysis. Last verified: 2026-08-12
· How we verify fixes
| Error Code | error-bad-file-type |
|---|---|
| Affected System | Windows 11 (Microsoft) |
| Difficulty | Medium |
| Estimated Time | 15 min |
Solution Steps
- 1 First, check the file extension. Right-click the file and select Properties. Look at the 'Type of file' field. If the extension doesn't match the actual file content, it might be corrupted or misnamed. For example, a file named 'report.pdf' might actually be a text file. Try opening it with a different program that matches the actual content.
- 2 If the file is a system file or a program file, try running the System File Checker. Press Win+R, type 'sfc /scannow', and press Enter. This will scan and repair corrupted system files that might be causing the error.
- 3 If the error occurs when opening a specific file type, reset the file association. Go to Settings → Apps → Default apps. Scroll down and click 'Choose defaults by file type'. Find the file extension (e.g., .txt) and select the correct app. This ensures that the right program opens the file.
- 4 If the file is from an external source (like a download), it might be corrupted. Download the file again from the original source. If it's a document, try opening it in a different application like Notepad or WordPad to see if it's actually a text file.
- 5 If the error occurs in a specific application, try reinstalling that application. Go to Settings → Apps → Installed apps, find the app, and click Uninstall. Then download the latest version from the official website and install it. This replaces any corrupted program files.
🔍 Didn't work? Enter your GPU and CPU for hardware-specific advice:
🔧 Still having issues?
Describe your exact problem to Error Buddy and get a personalized fix in seconds.
🛠️ Try Error Buddy — It's Free