1

特定の文字列「user」で始まるディレクトリを削除する必要があり、ディレクトリ内のすべてのサブフォルダーも削除する必要があります。ディレクトリが空の場合にのみディレクトリを削除するremovedirectoryを使用しました。

4

1 に答える 1

0
    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.
于 2013-01-03T08:14:00.357 に答える