开发者

What is the API to tie a folder to a file (a la Internet Explorer)

When you save an HTML file in Internet Explorer it creates a sub-folder with all its linked files. These two are linked, so that when you delete the file the folder goes too.

I want to 开发者_如何学Pythondo the same thing in my app. Can anyone give me a pointer to the relevant API?

Thanks


The pairing of HTML files and their attendant resource directory is a special case (implemented by the shell) and so is not a feature of the file system or to the best of my knowledge any extensible shell API. See Connecting Files in the SHFileOperation documentation.


When you have got the HTML file name, search that directory, in which the HTML file exists, for a directory with the same name as the html file but without the extension, and remove it recursively.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜