Batch File Command(s) To Keep Smallest Directory And Delete All Others
问题 My question is a bit complicated. Let me elaborate: I have a batch file now that will create 4 folders--they are: 1 2 3 4 Each of these 4 folders will have 2 files in them. What I'd like to do is create a batch file that will keep the smallest of these 4 folders and delete the others. So if the folder sizes were as follows: 1 = 300,000 b 2 = 325,000 b 3 = 250,000 b 4 = 350,000 b then only folder 3 should be kept and folders 1, 2, and 4 should be deleted. Can this be done with a batch file?