Hi,
i use windows.
i want to delete all files and folders in a folder by system call.
i may call like that:
>rd /s /q c:\destination
>md c:\destination
do u know an easier way?
Hi,
i use windows.
i want to delete all files and folders in a folder by system call.
i may call like that:
>rd /s /q c:\destination
>md c:\destination
do u know an easier way?
No, I don't know one.
If you want to retain the original directory for some reason (ACLs, &c.), and instead really want to empty it, then you can do the following:
del /q destination\*
for /d %x in (destination\*) do @rd /s /q %x