Menu
Will display a grid containing the names of files present in one directory but not in the other (and vice versa). In a nutshell: Compare-Directories 'somepath''otherpath' -Recurse Not as succinct as I like, but still quite short and quite powerful. If (!(Test-Path -PathType Container $Path1)) # Exclude files NOT present in both folders # Just pass the objects, otherwise Out-GridView them Having blogged about Compare-Object and having written MOBZync years ago and considering my newfound love of PowerShell, I thought it was about time to write Compare-Directories.ps1. Using constants for table and column names.Using a FileSystemWatcher from PowerShell.Comparing folder security using PowerShell.
0 Comments
Leave a Reply. |