My OP was quite clear in the first place, I thought, no need to plead
guilty at all: I was doing an 'sfc scannow' under Command Prompt in
Administrator mode. When the scan finished it showed me the command
C:\Windows\Log\CBS\CBS.log to open the log file which registered the
findings of the scan. Upon entering that command I was denied access.
Why was that and is there another way to access this particular log
file, that's what I wanted to know.
Sorry about the misunderstandings.
Harry.
C:\Windows\Log\CBS\CBS.log is not a command, it's a file name. However,
you *did* misspell the path. The second level is Logs, not Log. You can
open a file at the command prompt by typing its name, but unless you
have access to the file, that won't work. The way those things work, you
have to go from the outside, as I have explained to you a couple of
times. There are other methods, but they are more tangled, and anyway,
one way that works ought to be enough for you (or me).
For the thousandth time, do what I told you to do.
I think I have gained some insight into your bizarre remark
"If the logfile does not have a location, I am not surprised to be
denied access."
I did *not* say "the logfile does not have a location", I said this:
"the logfile is not a location".
It *has* a location, namely "C:\Windows\Log\CBS", which is a folder.
Try to follow these two analogies:
1. A copy of Ulysses is on shelf 12 of the library.
2. My car is in my driveway.
Can you see that Ulysses is not a location, but a document (like a
file)? It does have a location, namely shelf 12 of the library.
Similarly, my car is not a location, it is a document (like a file - OK,
that *is* a stretch, and I *don't* mean that I have a stretch limo). It
does have a location, namely my driveway.
One more thing. The reason you can't open the logfile is not a question
of whether it is a location(!), it is a question of what its permissions
are. Permissions are part of the information that Windows buries where
you can't see it, somewhere in the directory entry that describes the
file. Permissions determine who can and can't look at the file.
I don't want to hear from you any more unless you do what I described,
more than once, in order to access the file, and then you can tell me
what happened. But you haven't shown a great willingness to follow
instructions or suggestions, so I am quite pessimistic.