Announcement

Collapse
No announcement yet.

delete specific extensions from parent and subfolders

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • delete specific extensions from parent and subfolders

    Hi all
    I want to delete specific extensions from folder and it subfolder , for example delete all avi files
    like: del /Q /F *.avi c:\test
    but it will delete all avi files at test and will not delete avi files at subfolder,

    i want to delete it from parent and subfolders.

    Can you help me!!!

  • #2
    Re: delete specific extensions from parent and subfolders

    Add /S

    /S - Delete specified files from all subdirectories.
    Shay Levy
    Windows PowerShell MVP
    http://blogs.microsoft.co.il/blogs/ScriptFanatic
    PowerShell Toolbar: http://tinyurl.com/PSToolbar
    Twitter: http://twitter.com/ShayLevy

    Comment

    Working...
    X