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

powershell copy or move a directory tree

$
0
0

Hi,

I need to copy or move a directory tree depending on a "lastused date" to a new location. The files in each directory like *.log or *.txt  must be opend and searched for special strings and written back to the destination directory. The initial input directory contains  sub-directories. All files must be copied or moved. Only the root-input and root-output direcorty exist. The script runs daily with copy and move parameter, so the directories in the destination directory must be created if not exist or just used. The files in the destination directory can be overwritten.

Does anyone have a sample script or template that can be reused?

thank you

sonny


Siegmund Sonntag


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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