FIX: “The filename, directory name, or volume label syntax is incorrect” with INI files

By on August 24, 2009

I have received an email from my friend that he is facing some problem with INI association. The problem is: Whenever I try to open any file with extension “.ini” (either by double clicking or open with Notepad), It prompts The filename, directory name, or volume label syntax is incorrect

Same file opens if I open it using WordPad. The problem is occurring with all “.ini” files. If I create a text file, type something and save it with extension .ini, I can’t open it by double clicking or by right click and follow Open with >> Notepad.”

Actually It is caused by a Virus/Trojan and it can be fixed manually. So I am sharing the solution to fix it.

How To:

  1. Run Registry Editor (Type regedit in Start Search or Run Dialog box)
  2. Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Classes\inifile\shell\open\command
  3. Now set its (Default) value to: %SystemRoot\%system32\Notepad.exe %1

 Or you can simply download the zip file and extract. Run Registry Patch and that’s it.

 Applies To:

  • Windows Server 2008 R2
  • Windows Server 2008
  • Windows 7
  • Windows Vista
  • Windows XP

Associated terms:
The filename directory name or volume label syntax is incorrect, the filename directory name syntax is incorrect, the filename directory name or volume label syntax is incorrect windows 7, volume label syntax is incorrect, filename directory name or volume label syntax is incorrect, the filename directory name or volume label syntax is incorrect fix, filename directory name syntax incorrect, the file name directory name or volume label syntax is incorrect, The filename, directory name, or volume label syntax is incorrect, the file name directory name or volume, The filename directory name or volume syntax is incorrect, the filename directory name or volume label is incorrect, the filename directory name or volume label syntax is incorrect windows xp, windows 7 the filename directory name or volume label syntax is incorrect, how to fix the filename directory name or volume label syntax is incorrect, filename directory name or volume syntax incorrect, the filename directory name or syntax is incorrect, (The filename directory name or volume label syntax is incorrect), inifile shell open command, inifile\shell\open\command

Comments are closed.