Batch delete multiple specified extension files in the current directory and sub-directories in bulk

Source: Internet
Author: User

Bulk deletion of any specified extension file in the current directory and sub-directories

Today compiled dev language files, all language files do not need, only keep the language files in Chinese, write a batch processing and easy to use later

1 @echo off2 Setpath=%cd%3CD/D Path4DEL/F/S/Q/A *. TLog5DEL/F/S/Q/A *. Cache6DEL/F/S/Q/A *. txt7DEL/F/S/Q/A *. pdb8DEL/F/S/Q/A *. Resources9DEL/F/S/Q/A *. VSPSCCTenDEL/F/S/Q/A *. Mk.resx OneDEL/F/S/Q/A *. Lv.resx ADEL/F/S/Q/A *. CSPROJ.VSPSCC -DEL/F/S/Q/A *. DLL -DEL/F/S/Q/A *. CS theDEL/F/S/Q/A *. csproj -DEL/F/S/Q/A *. sln -DEL/F/S/Q/A *. VSSCC -DEL/F/S/Q/A *. VSSSCC +DEL/F/S/Q/A *. Ar.resx -DEL/F/S/Q/A *. Bg.resx +DEL/F/S/Q/A *. Ca.resx ADEL/F/S/Q/A *. Cs.resx atDEL/F/S/Q/A *. Da.resx -del/f/s/q/a *.de-Ch.resx -DEL/F/S/Q/A *. DE.resx -DEL/F/S/Q/A *. El.resx -DEL/F/S/Q/A *. Es.resx -DEL/F/S/Q/A *. Fa.resx inDEL/F/S/Q/A *. Fi.resx -DEL/F/S/Q/A *. FR.resx toDEL/F/S/Q/A *. He.resx +DEL/F/S/Q/A *. Hr.resx -DEL/F/S/Q/A *. Hu.resx theDEL/F/S/Q/A *. Hy.resx *DEL/F/S/Q/A *. is. resx $DEL/F/S/Q/A *. It.resxPanax NotoginsengDEL/F/S/Q/A *. Ja.resx -DEL/F/S/Q/A *. Ko.resx theDEL/F/S/Q/A *. Lt.resx +DEL/F/S/Q/A *. Nl.resx ADEL/F/S/Q/A *. No.resx theDEL/F/S/Q/A *. Pl.resx +del/f/s/q/a *.pt-Br.resx -DEL/F/S/Q/A *. Pt.resx $   $DEL/F/S/Q/A *. Ro.resx -DEL/F/S/Q/A *. Ru.resx -DEL/F/S/Q/A *. Sk.resx theDEL/F/S/Q/A *. Sl.resx -del/f/s/q/a *.sr-cyrl-Cs.resxWuyidel/f/s/q/a *.sr-latn-Ba.resx thedel/f/s/q/a *.sr-latn-Cs.resx -DEL/F/S/Q/A *. Sv.resx WuDEL/F/S/Q/A *. Ta.resx -DEL/F/S/Q/A *. Tr.resx AboutDEL/F/S/Q/A *. Uk.resx $DEL/F/S/Q/A *. Vi.resx -del/f/s/q/a *.zh-Hans.resx -del/f/s/q/a *.zh-Hant.resx -del/f/s/q/a *.zh-Tw.resx ADEL/F/S/Q/A *. SCC +echo Delete Complete! Keep only *.zh-Cn.resx the echo Please press any key to exit!  -@pause

Depending on directory permissions, you may want to run as an administrator

After running the following prompts,

1 ....  2 3Delete file-D:\Development\DevExpress\DXperienceLocalizationResources14.2\v14.2\d4 EVEXPRESS.XTRASPREADSHEET\MSSCCPRJ.SCC5Delete file-D:\Development\DevExpress\DXperienceLocalizationResources14.2\v14.2\d6 EVEXPRESS.XTRATREELIST\MSSCCPRJ.SCC7Delete file-D:\Development\DevExpress\DXperienceLocalizationResources14.2\v14.2\d8 EVEXPRESS.XTRAVERTICALGRID\MSSCCPRJ.SCC9Delete file-D:\Development\DevExpress\DXperienceLocalizationResources14.2\v14.2\dTen EVEXPRESS.XTRAWIZARD\MSSCCPRJ.SCC OneDelete Complete! Keep only *.zh-cn.resx//Line A Please press any key to exit!  -. .

Batch delete multiple specified extension files in the current directory and sub-directories in bulk

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.