Archive

Posts Tagged ‘Remove-Item’

PowerShell: Delete specific files recursively / recursive

February 19th, 2010 christian No comments
Okay, this post I’m going to write down for my personal notes but also for you..
Ever needed to delete a specific file, in my case in need to delete (remove-item) all *.pdb files in one of my Visual Studio Solution.. recursive of course.
To get a list of Files use the Get-ChildItem CmdLet. Extend that command using the –rec or –recurse parameter – so you’ll get all the files recursively, starting from the current path / directory.
Logo_PowerShell

Read more…

WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera