Hello We have severeal hundred robocopy log files that get written to a certain area, i believ get-content can perform what i need but unsude on the exacts to use here. we want to:
1, interogate several undred log files in (lets say for instance) d:\robologs
2, if any of these files that have lines starting with any of the below 5 statments, then move that text file to d:\robolog\failed folder:
Not enough quota is available to process this command.
Access is denied.
The process cannot access the file because it is being used by another process.
An unexpected network error occurred.
This file is currently not available for use on this computer.
Thanks in advance