Compare two directories


hello guys,

i need migrate few file shares. ll use robocopy migrate server 1 server 2. because lot of folders , files @ end of each script call power shell script compare (by size) source , destination , if different send alert.

i have tried few script list contents of directories space when want root of directories.

can 1 me , point me on right direction.

regards,

arestas

get-childitem c:\test\* -file -recurse |measure-object -sum length | select sum |ft -auto


\_(ツ)_/



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS