I want to monitor a specific file. Everytime it changes I want to get notified.
In Linux there is a perfect tiny program for that task called monit. Unfortunately I don't have such a tool in Windows :-(
I looked around for file monitor programs which are built-in in Windows - but could not find anything. There are a some tools to compare files like fc or find where you can "look" inside files. But they don't really help me.
Is there a possibility to monitor file changes using a batch file without installing extra software?

This solutions works with a temporary copy of the monitored file. Thus you can even monitor a file which is on a write-protected network drive (where you can't reset an archive attribute).
The following batch file compares the time stamp of a file with a copy of that file.
If there is a difference it opens
notepad.exeand shows both versions.Usage:
DetectFileChange.bat C:\FileToMonitor.txt C:\Temp\CopyOfMonitoredFile.txtDetectFileChange.batYou could either run the program (e. g. every hour) by the Windows Task Scheduler to perform a check.
The other possibility is to uncomment the following two lines:
Then the script will do a check every 30 seconds without being closed.
And that's what it looks like when a change is detected: