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

Delete multiple files from reference file

$
0
0

Hello,

 

I would like to know the command to delete some files from  a particular directory. I have set of files which ends with .xml extension. I made a list of files to be deleted and saved it in a another reference file called tobedelete.txt.

How do I call PowerShell to delete the files that are listed in the file "tobedeleted.txt"

 

Please advise.

 

 

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles