Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How to comapare two folders and copy differrent files in many locations

$
0
0

I need the following ( in powershell )

1- to compare two folders on the following basis

          if file does not exist  ( means new file )

          if file exist but had different date or length  ( means modified file )

2- Capture above files (i.e. differences ) and copy it to 2 or 3 locations

I saw many items in the internet compares existing files and stopping on that stage.

Thanks in advance


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>