Me: "I want to watch a Windows directory for any file changes, and then log out the contents of the files. How do I do that?" ChatGPT: "Check out these 20 lines of C " Damn, not bad C , not bad. And it actually worked, too. You can use "dotnet-script" to run single files: