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
Post a Comment