I’m trying to find a way to run a powershell script when a txt file is created in a SPECIFIC folder. I have a PHP website which generates certain logs and I gather information in these logs with powershell later.
Does anyone know how to do this?
txt file is generated and stored in c:test.
When there is a txt file in c:test -> run script.ps1