Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Help!! Script to Extract Date from Excel for us to then Automate Deleting Files

$
0
0

Hey Guys

Need help with a powershell script if possible for what i think is a complex automation.

So we have a client who wants us to separate their documents into two folders, one called "Release" and one called "Non-Release". We have scanned all their documents and labelled them in a Excel document with either a R001 (for Release folder) code or NR001 (for Non-Release folder) code along with their physical location and file name also in the document. In order to make our life easier we have copied the file/folder structure into both Release and Non-Release folders (glad the disk is 1TB i say)

What we want to do is first extract this data into two spreadsheets so we can see what can go in each folder then automate the delete of the files not needed in each folder , so if filex.pdf is in the Non-Release spreadsheet, delete from the same folder location in the Release folder, so we don'thave to manually find the file and delete

Any help or suggestions would be much appreciated!!! 

Darth

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles