I am using Window XP SP2
There are 2 possibilities that caused this, I don't know
which.
- Last Monday, my computer detected a virus. I don't know what
is it called, all I know it has W32 at the beginning.
- Today I tried to create an .INI file, first creating a .TXT
file and changing the extension to .INI
Then I got the problem, I couldn't edit the new .INI file.
Because when I open it, I get this message "The file name,
directory name, or volume syntax is incorrect".
I decided to delete the .INI file I created and just copy an .INI
file I got from another folder.
When I was exploring that folder and opening my .INI file. (The
one I wanted to copy)
I got the error message again, "The file name, directory name,
or volume syntax is incorrect"
I googled for solution, then I came across this person saying
changing the registry setting will work.
This is what he said, and what I did.
Please change the registry settings, this will go.
HKEY_CLASSES_ROOT\inifile\shell\open\c...
change from "%SystemRoot%\system32\NOTEPAD.EXE %1" to
"%SystemRoot%\system32\NOTEPAD.EXE"
(just take out the "%1")
HKEY_CLASSES_ROOT\inifile\shell\print\...
change from "%SystemRoot%\system32\NOTEPAD.EXE /p %1" to
"%SystemRoot%\system32\NOTEPAD.EXE /p"
simillarly for Batfiles.
HKEY_CLASSES_ROOT\batfiles\shell\edit\...
change from "%SystemRoot%\system32\NOTEPAD.EXE %1" to
"%SystemRoot%\system32\NOTEPAD.EXE"
HKEY_CLASSES_ROOT\batfiles\shell\print...
change from "%SystemRoot%\system32\NOTEPAD.EXE %1" to
"%SystemRoot%\system32\NOTEPAD.EXE"
After changing these settings, rebooting. I tried opening the
.INI file, the error message was gone. BUT when I open it, the
notepad is empty, and the blue bar above which states the file name
is "Untitled".
I can open .INI file without problems with Wordpad, but Notepad
is the problem.
Any solutions?