I’ve been working at this trying multiple options but cannot find a script that works. Hoping that someone here may be able to help out. I’m not a powershell or scripting guru by all means, so this is probably leading to my failure.<\/p>\n
Simply put, I have a CSV file that contains one column with many rows that have filenames listed (i.e. picture1.jpg). I need some recursive script that will go through all subfolders located on D: and delete all matching files listed in the CSV file.<\/p>\n
Thank you in advance!<\/p>","upvoteCount":5,"answerCount":3,"datePublished":"2022-03-14T19:59:31.000Z","author":{"@type":"Person","name":"mrudella","url":"https://community.spiceworks.com/u/mrudella"},"suggestedAnswer":[{"@type":"Answer","text":"
I’ve been working at this trying multiple options but cannot find a script that works. Hoping that someone here may be able to help out. I’m not a powershell or scripting guru by all means, so this is probably leading to my failure.<\/p>\n
Simply put, I have a CSV file that contains one column with many rows that have filenames listed (i.e. picture1.jpg). I need some recursive script that will go through all subfolders located on D: and delete all matching files listed in the CSV file.<\/p>\n
Thank you in advance!<\/p>","upvoteCount":5,"datePublished":"2022-03-14T19:59:31.000Z","url":"https://community.spiceworks.com/t/ps-to-query-csv-and-delete-files/827685/1","author":{"@type":"Person","name":"mrudella","url":"https://community.spiceworks.com/u/mrudella"}},{"@type":"Answer","text":"