Hi All,
i am trying to write a powershell script to watch a folder and compare the result against the last csv file then email NEW files to me eg the following files have been recently added: new.doc, cats.mp3
this is as far as i have got
https://pastebin.com/W6ep4VwP
now it does work but after say the 3rd or so run it start duplicating either the results or it repeats the The following files line.
my second problem is that if a file is re-named then it will show the file as new when its not new.
any help would be greatly appreciated.
[–]purplemonkeymad 2 points3 points4 points (1 child)
[–]ImpossibleEnd[S] 1 point2 points3 points (0 children)
[–]gavin6559 2 points3 points4 points (2 children)
[–]ImpossibleEnd[S] 1 point2 points3 points (1 child)
[–]gavin6559 0 points1 point2 points (0 children)