Why is RemoveDirectory function not deleting the top most folder?

后端 未结 3 1168
故里飘歌
故里飘歌 2020-12-18 12:11

refer: codeguru.com/forum/showthread.php?t=239271

When using the function below to delete folders, all folders, subfolders and files are getting deleted except for

3条回答
  •  失恋的感觉
    2020-12-18 12:20

    Whilst you can delete a directory this way, it's simpler to let the system do it for you by calling SHFileOperation passing FO_DELETE. Remember that you must double null-terminate the string you pass to this API.

提交回复
热议问题