I have a question, i have the following paths:
C:\Vendita\folder1\files and subfolders
C:\Vendita\folder3\files and subfolders
C:\Vendita\folder3\files and subfolders
i want to delete (using win shell commands), for each subfolder (C:\\Vendita\\folder1,C:\\Vendita\\folder2,C:\\Vendita\\folder2...) all files and subfolders, but keeping folder1, folder2 ecc...
i try this:
for %D in (C:\Vendita\) do del *.* /s /q
but it delete all files and keep all subfolders..
Can you explain me what is wrong?
Thank you
Why don't you use rmdir
? Your command only removes files with a certain filename.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.