1
특정 문자열 "user"로 시작하는 디렉토리를 삭제해야하며 Directory의 모든 하위 폴더도 삭제해야합니다. 비어있을 때만 디렉토리를 삭제하는 deletirectory를 사용했습니다."xxxxx"로 시작하는 디렉토리를 재귀 적으로 삭제하는 방법은 무엇입니까?
특정 문자열 "user"로 시작하는 디렉토리를 삭제해야하며 Directory의 모든 하위 폴더도 삭제해야합니다. 비어있을 때만 디렉토리를 삭제하는 deletirectory를 사용했습니다."xxxxx"로 시작하는 디렉토리를 재귀 적으로 삭제하는 방법은 무엇입니까?
Normally I would open a command window then cd to the directory you want to delete,
Enter the command: "del /S /F *.* *" to delete all files and subdirectories.
Backup to the parent directory: cd ..
Remove the directory: rmdir "user*"
Use "del/?" to see all the options for del.
If you have to do this in c++, you can use the "system()" call.
BTW: I did not test this just now, so no guarantee.