Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We recently changed the DHCP service at my workplace from a RHEL server to a Windows 2008 R2 server. As I'm used to monitoring the logfiles with "tail -f" I thought I'd try to read the logs on the new server with baretail.exe.

The problem is, when I try to open the C:\Windows\System32\dhcp folder I get an error message that reads:

Windows can't find 'C:\Windows\System32\dhcp'. Check the spelling and try again.

I can see the folder just fine through Explorer and I can open the logfiles themselves with Notepad, but the folder and it's contents doesn't seem to exist for baretail.

Does anybody have any idea why this could be?

Alternatively; does anybody have any suggestions of how best to view logfiles on a Windows server.

share|improve this question

2 Answers 2

Most likely baretail.exe is a 32-bit program, and sees the SYSWOW64 directory instead of SYSTEM32 (in 64-bit Windows the SYSTEM32 directory really contains 64-bit DLLs, and the SYSWOW64 directory contains 32-bit DLLs). According to Wikipedia article on WoW64, 32-bit applications can access the real SYSTEM32 directory as %SystemRoot%\sysnative. Another option is to change log location in the DHCP server configuration, so that log files are outside SYSTEM32.

share|improve this answer
    
That was it. I tried to open the file through %SystemRoot%\sysnative and it worked. Thank you so much! –  asbja Dec 16 '10 at 17:29

Baretail.exe works for me.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.