Learn About Computers

Teaching about Computers


    21. Bat to Delete File & Folder Types

    Share

    Aof
    Admin

    Posts : 77
    Join date : 2018-03-24

    21. Bat to Delete File & Folder Types

    Post by Aof on Tue May 08, 2018 2:23 am



    21. Bat to Delete Specific File & Folder Types
    ----
    delallzips.bat Deletes all .zips Files Contents.
    =*=
    Code:
    @echo off
    del .\*.zip /s /q
    =*=

    rdB.bat contents Delete all folders that starts with a B.
    =*=
    Code:
    @echo off
    for /d %%a in (B*) do rd /s /q %%a
    =*=

      Current date/time is Sat Oct 20, 2018 12:48 am