How to diff two folders from a Windows command prompt
I was migrating files between two servers this weekend. One was our EMC VNX the other was a Nasuni filer. Nasuni has a built in migration tool using their web UI. It was working fine all week, but the night of the cut over it couldn’t complete a sync job. Since I had been syncing it all week I knew 99% of the files where there and correct. I wanted to find which files may have changed on Saturday morning. A quick google search and I found this syntax for robocopy it worked perfectly.
Diff Command Using RoboCopy
So here?s the command to perform a basic comparison of two folders and write a log file listing the differences.
ROBOCOPY “\\FileShare\SourceFolder” “\\FileShare\ComparisonFolder” /e /l /ns /njs /njh /ndl /fp /log:reconcile.txt
via How to diff two folders from a Windows command prompt | Improving Software.
Hope this helps someone else out. I found other solutions using powershell or 3rd party software. But this worked and was quick and easy.
More Stories
Windows Deployment with the Next Generation of Windows Autopilot
Microsoft's latest update to Windows Autopilot brings significant enhancements to the deployment process of Windows devices, catering to the needs...
Shrink PowerPoint files
Need to reduce the size of your PowerPoint file that contain a large number of pictures. Give this a try...
Setting the exchange online max send and receive size
Quick post today around setting exchange online max send and receive size. It can be set using the GUI in...
How to find your Microsoft Exchange build number
When documenting your environment, it’s important to keep track of the build number of your Exchange server. To get the...
Micrsoft Defender for Endpoints
We use Microsoft Defender for endpoints on our physical workstations. I'm now looking at it for our servers. The servers...
Sync Active directory user data with SharePoint
If you want to sync standard common attributes from active directory to sharepoint. Its easy, AD sync to Azure AD...