Why can't I read the logs stored in C: \ Windows \ System32 \ ... under Vista without moving them elsewhere?

I am using a program that stores log files in C:\Windows\System32\config\systemprofile\AppData\Roaming\ProgramName\*.log

, but for some reason I cannot view those logs unless I move them to a different location.

They display at the correct size and everything in explorer, but if I try to open it with NotePad ++ or Tail, I just get an empty file until I copy the log to another location on disk (after which all the text is displayed well).

I'm guessing it has something to do with Vista security restrictions, but I'd rather get a more complete explanation than this, and if possible, a way to disable the corresponding restrictions so that I can access the files without any extra steps ...

0


source to share


2 answers


One of the possibilities is SysWOW64 file redirection.

If it is a 64-bit version of Windows and your program - in the case of NotePad ++ - is compiled and linked as a 32-bit application, the operating system will automatically redirect any open files from% windir% \ system32 to% windir \ syswow64.



For reasons that are difficult to explain, Microsoft has decided that this is the best compatibility method for 32-bit applications to work correctly on newer 64-bit operating systems.

+2


source


One of the features of Vista is to restrict access to certain directories. Google will find a lot of information for you about Vista security.



+1


source







All Articles