Batch file. Delete all files and folders in a directory

前端 未结 14 1309
无人共我
无人共我 2020-11-30 19:20

I want to have a batch file that will delete all the folders and files in my cache folder for my wireless toolkit.

Currently I have the following:

cd         


        
14条回答
  •  渐次进展
    2020-11-30 19:49

    IF EXIST "C:\Users\tbrollo\j2mewtk\2.5.2\appdb\RMS" (
        rmdir "C:\Users\tbrollo\j2mewtk\2.5.2\appdb\RMS" /s /q
    )
    

    This will delete everything from the folder (and the folder itself).

提交回复
热议问题