Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

What's the best way to search for excel files in specific folders and move them?

$
0
0

Hey guys, 

We have a network drive with the following folder structure:

G:\projects\client name\project_number_xx\05_From_Proofreader\filename.xlsx

where Client name, Project number, and filename.xlsx are variables, and G:\projects\ and 05_From_Proofreader constant. I need to search entire G:\projects for all excels that are located within 05_From_Proofreader folders only and copy them to G:\archive\project_number_xx\filename.xls.  I am doing this manually right now and it takes forever. I am sure this can be done better with a script. Can anyone assist? Thanks!


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

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