0XC0000033

STATUS_OBJECT_NAME_INVALID (0XC0000033) – Object Name Invalid Fix

Windows Errors Intermediate 👁 0 views 📅 May 28, 2026

The object name is invalid. This usually means a file or folder name contains illegal characters—often from cloud sync apps or bad renames.

You hit 0XC0000033 trying to open, delete, or rename a file. It's cryptic, but the root is usually simple: the file or folder name contains something Windows can't handle—a trailing space, a reserved character, or a name that's too long. Here's how to fix it without losing your data.

The Real Fix: Rename via Command Line

Don't bother with File Explorer—it'll just throw the same error. Open Command Prompt as admin, then navigate to the folder containing the problem file. Use dir /x to see short (8.3) names—these are safe fallbacks Windows creates for long filenames.

cd /d "C:\path\to\folder"
dir /x

Look for the file with the weird name. The short name will look something like PROBLE~1.TXT. Use that to rename:

ren PROBLE~1.TXT goodname.txt

Now try opening or deleting it. That's it. 9 times out of 10, this works.

Why This Works

Windows creates short names (8.3 format) for backwards compatibility with older software. These names strip out illegal characters—no spaces, no < > : " / \ | ? *, no trailing dots or spaces. By renaming via the short name, you bypass the character filter that's blocking the operation. The real issue isn't the file system—it's the name parser in the Windows API that rejects certain strings. The short name is like a skeleton key: it gives you access the long name blocks.

When the Short Name Doesn't Exist

On NTFS volumes with 8dot3name disabled (common on SSDs or systems with fsutil behavior set disable8dot3 1), dir /x may show no short name. In that case, you need another approach.

Use a Third-Party File Manager

Tools like Total Commander or Far Manager can rename files that Explorer cannot. They bypass the Windows shell's validation and talk directly to the file system. I've seen Far Manager handle filenames with trailing spaces that Explorer refused to touch.

Mount the Folder as a Drive

Rare, but if the name includes a reserved DOS device name (like CON, PRN, AUX), try this: open a new Command Prompt and run:

subst X: "C:\path\to\parent"
X:
ren \\?\X:\baddir\badfile.txt fixed.txt
subst X: /d

The \\?\ prefix tells the Windows API to skip path normalization entirely—it passes the raw string straight to the file system driver. This often works when nothing else does.

How This Error Gets Triggered

I've seen this most often after:

  • Cloud sync failures: OneDrive or Dropbox creates a file with a conflicting name (e.g., file (1).txt with a trailing space). The sync client doesn't enforce Windows naming rules.
  • Backup restores: Restoring from a Linux-based NAS that allowed characters like : in filenames. Linux is fine with colons; Windows is not.
  • Old software exports: Some legacy apps (especially from the 1990s) write filenames with control characters (ASCII 0–31). Explorer shows them as blank boxes.

Prevention: Check Before You Sync or Restore

If you regularly move files between Windows and Linux or macOS, run a cleanup script on the filenames first. On Windows, you can use PowerShell to scan for illegal characters:

Get-ChildItem -Recurse | Where-Object { $_.Name -match '[<>:"/\\|?*]' }

Also disable long path support if you don't need it (some backup tools choke on paths > 260 characters). But honestly, the biggest win is to never rename files in cloud sync folders manually—let the sync client do it, or do it via CLI.

One more thing: if you're using OneDrive, check its "Files On-Demand" settings. Sometimes a file is marked as online-only, and the local placeholder has a mangled name. Force a sync with onedrive.exe /sync from the command line—that often clears the corruption.

Was this solution helpful?