Medium Operating Systems ✓ Solution Verified by Community (0+ upvotes)

Error Code error-bad-pathname — Windows 11

ERROR_BAD_PATHNAME = 161

65% úspěšnost
👥 0+ uživatelů ověřilo
📅 Aktualizováno: 2026-08-12
⏱️ 30 min čtení
Oprava založena na komunitních zprávách a expertní analýze. Naposledy ověřeno: 2026-08-12 · Jak ověřujeme opravy
Error Codeerror-bad-pathname
Affected SystemWindows 11 (Microsoft)
DifficultyMedium
Estimated Time30 min
Requires Admin Rights⚠️ Yes

Postup řešení

  1. 1 Press Windows key + R to open the Run dialog. Type 'cmd' and press Ctrl+Shift+Enter to open Command Prompt as administrator. Click Yes if prompted. This gives you the elevated privileges needed to run system repair commands.
  2. 2 In the Command Prompt, type 'sfc /scannow' and press Enter. This System File Checker scans all protected system files and replaces corrupted ones. It's like a doctor checking your system's vital signs — it finds and repairs damaged files that might cause path errors.
  3. 3 If SFC finds issues but can't fix them, run DISM. Type 'DISM /Online /Cleanup-Image /RestoreHealth' and press Enter. This tool repairs the Windows system image itself, providing a healthy foundation for SFC to work. Think of it as repairing the library's catalog before fixing individual books.
  4. 4 Check for broken shortcuts: Right-click the Start button and select 'Apps and Features'. Look for recently installed or updated programs that might have broken paths. Uninstall and reinstall any suspicious software.
  5. 5 If the error occurs in a specific application, try reinstalling that application. This often resets the file paths it uses. For example, if a game shows this error, reinstall the game or verify its files through the game launcher.
  6. 6 As a last resort, edit the registry to fix invalid path values. Press Win+R, type 'regedit', and press Enter. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths. Look for entries that point to non-existent files and correct them. Be extremely careful — a mistake here can break your system.

🔍 Didn't work? Enter your GPU and CPU for hardware-specific advice:

🔧 Stále máte problémy?

Popište svůj přesný problém Error Buddymu a získejte personalizovanou opravu během několika sekund.

🛠️ Vyzkoušet Error Buddy — Zdarma