Hello powershell scripters,
i really can't get this one...
I have fileA.log which will be filled continuously with data. Now i want to stream this file to a file B in another folder.
On Linux its like
tail -f fileA.log > anotherfolder/fileB.log
Problem is fileA.log will be rotated two times a day into fileA.log and a new fileA.log will be created. So the script has to check if fileA.log gets rotated. If so it has to do the same with fileB.log and start a new one automaticly and continue the output from the new fileA.log to the new fileB.log.
I hope i explained it understandable. Anyone can help me out with this?