Tôi có mã dưới đây so sánh hai thư mục và xuất ra các tệp khác nhau đối với mỗi thư mục, có cách nào để xuất ra đường dẫn tệp/thư mục đầy đủ cho tệp trong thư mục con không?Powershell - So sánh các nội dung trong thư mục
Cheers
# Create varaibles to store folder paths - pass to Strings...
param([string]$argFolderA,[string]$argFolderB)
# Set variables for folder
$FolderA = Get-ChildItem -Recurse -path $argFolderA
$FolderB = Get-ChildItem -Recurse -path $argFolderB
# Compare the contents and output the files different within each folder.
Compare-Object -ReferenceObject $FolderA -DifferenceObject $FolderB >> C:\CmpOut.txt
Bằng cách SideIndicator này sẽ bị mất. –