Batch file. Delete all files and folders in a directory
问题 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 "C:\Users\tbrollo\j2mewtk\2.5.2\appdb\RMS" del *.db This will delete all .db files in my RMS directory, however I want to delete every single thing from this directory. How can I do this? 回答1: del *.* instead of del *.db . That will remove everything. 回答2: Use: Create a batch file Copy the below text into the batch file set folder="C:\test" cd