gVim can't open file in c:\Windows\system32

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
peter_b
Chatterbox
Posts: 383
Joined: Tue Nov 12, 2013 2:05 am

gVim can't open file in c:\Windows\system32

Post by peter_b »

[PROBLEM]
On a 64bit Windows7, when trying to open a file with gVim in C:\windows\system32, it shows up empty, and vim says "new file".
Other files in the folder can be opened without problems.
It's not an access rights (permissions) issue, since the file can be opened with e.g. notepad.

[SOLUTION]
The inconsistent, confusing behavior that "some" applications see the file, while others don't, depends on whether the viewing application is 32bit or 64bit. gVim is 32bit, while notepad for example is 64bit.
The folder that actually is accessed from a 32bit application is in fact C:\Windows\systemWOW64.


Links:
Post Reply