Application that parse folders based on folder format?

Is there a nice tool that can retrieve all folders in a certain directory that have a .v1 or .v2 folder extension (not file extension).  I need a list so I can delete those directories instead of manually doing it.  If anyone finds a tool or command that can do this, thank you!
LVL 1
mystikal1000Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

oBdACommented:
Powershell; this only tells you what it would delete. Remove the -WhatIf to delete the folders for real:
Get-ChildItem -Path C:\Temp -Recurse -Directory -Filter '*.v?' | Where-Object {$_.Name -match '\.v[12]\Z'} | Remove-Item -Recurse -WhatIf

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mystikal1000Author Commented:
Thanks this is great, however it won't delete certain directories in the subfolders.  Is there a gui app that can filter these?
0
oBdACommented:
The directories it can't delete are usually ones where either
* the user attempting the deletion doesn't have the required permissions
or
* the item in question is opened in an application.
Neither of these cases can be resolved using a GUI or any other application. In the first case, an account with the required permissions needs to be used, in the second case, the application(s) holding the item(s) open need to be closed.
0
mystikal1000Author Commented:
The file path is too long...error

I deleted it manually with proper permissions and that worked.  I like the PS command, however a GUI would be better.
0
oBdACommented:
Don't know anything specific, GUI tool for that, sorry.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.