We have developed a script in which the pre files and post files are generated after a process for testing. So far the powershell compares the pre and post files based on the file name only and if file name is missing it generates a report in html format stating which files are not present in post process.Is there a way we can develop a script which initailly compares the file name then proceeds to compare the file content and provides a html report on the files which are missing.
Welcome to the forum.
In short - “yes”.
But … please keep in mind: This forum is for scripting questions rather than script requests. We do not write customized and ready to use scripts or solutions on request.
We expect you to make an own attempt to get your task done or to solve your problem. If you have done so already please document here what exactly you have done and show your code. Then we probably might be able to help you step further.
In general you can use …
… to compare objects.
Please read the help completely including the examples to learn how to use it.
Thank you for ensuring it is feasible. And sorry for that (-beginners mistake).I will work on that part.
No need to sorry yet. IMHO you did not make any mistake yet.