Watching Files with Powershell

Jul 24, 18

I needed to watch a folder to see when files were created. I also decided to check for deleted files, below is the script. You can, of course, just look at the folder to see this in explorer. In this case, we had some files moving from one folder to another as part of a workflow, so this made it easy to just see when the files were coming in and getting removed and created.

Sometimes, you just need to watch things. With powershell this is pretty easy.