用于删除文件夹的 Win32 API 函数是什么? [英] What is the Win32 API function to use to delete a folder?

查看:33
本文介绍了用于删除文件夹的 Win32 API 函数是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用于以编程方式删除文件和文件夹的 Win32 API 有哪些?

What are the Win32 APIs to use to programically delete files and folders?

编辑

DeleteFileRemoveDirectory 正是我要找的.但是,对于这个项目,我最终使用了 SHFileOperation.我发现 CodeGuru 上的示例代码很有帮助.

DeleteFile and RemoveDirectory are what I was looking for. However, for this project I ended up using SHFileOperation. I found the sample code at CodeGuru helpful.

推荐答案

我想你想要 DeleteFileRemoveDirectory

这篇关于用于删除文件夹的 Win32 API 函数是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆