如果保存到硬盘,CHM 文件将无法读取
我刚刚下载了框架 4.0 的 JSon.Net 作为 zip 文件。
打开 zip(使用 WinRar) 我可以通过双击列出的名称来打开 Documentation.chm 文件,并且帮助文件做得很好。
无论如何,如果我将此文件提取到硬盘并打开它,帮助将无法读取。
听起来很傻,但它正在发生。
感谢您的帮助!!!
已编辑:
另一个提示:无法读取的 chm 文件位于 D:\....(第一个硬盘的第二个 NTFS 分区);如果我将其保存在桌面上,chm 文件就变得可读!疯狂...
------------------------------------------------
---------- 解决方案 ----------
------------------------------------------------
我回答我的问题以关闭它并帮助遇到我同样麻烦的人。
使用@Marco van de Voort建议的提示,我在Google上搜索“chm unblock”并找到了这个链接:
您的 CHM 文件存储在带有“#”(井号)字符的文件夹中 路径
许多 C# 开发人员发现他们的文档 CHM格式的电子书无法阅读,因为它们正在存储 他们的 CHM 文件位于“C:\E-books\C#\”等目录中。
哈希值 字符在 HTML 中表示锚点,因此 CHM 查看器无法识别 正确解析路径并检索内容。
这就是我的问题:我的路径带有#...,我从来没有想过这对 CHM 文件来说会是一团糟!!!
感谢SO伙伴们的帮助!!
I've just downloaded JSon.Net for framework 4.0 as a zip file.
Opening zip (using WinRar) I'm able to open Documentation.chm file by double-clicking over the name listed and the help file is well done.
Anyway if I extract this file to hdd and I open it, help is unreadable.
Sounds silly, but it's happening.
Thanks for your help!!!
EDITED:
Another tip: unreadble chm file is located in D:\.... (second NTFS partition of first hdd); if I save it on my desktop, chm file becomes readable !!! Crazy...
------------------------------------
---------- SOLUTION ----------
------------------------------------
I answer my question to close it and to help someone who finds in my same trouble.
Using tip suggested by @Marco van de Voort I searched Google for "chm unblock" and found this link:
Your CHM files are stored in the folder with '#' (hash) character in
the path
Many C# developers discovered that their documentation
and e-books in CHM format cannot be read because they were storing
their CHM files in the directories like 'C:\E-books\C#\'.
The hash
character signifies an anchor in HTML so the CHM viewer fails to
resolve the path properly and to retrieve the content.
That was my problem: I had path with a #... and I'd never thought this could be a great mess for CHM files!!!
Thanks to SO mates for the help given !!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Windows 会跟踪 NTFS 系统上下载的文件,并对它们设置某些限制。如果使用 Windows 资源管理器提取,此状态会从存档传播到文件。使用第三方工具(在你的例子中是 winrar,我使用 INFO zip)可以规避这个问题。
可以找到一些描述和其他链接
http://wiki.lazarus.freepascal.org/chm_backend_for_fpdoc#Troubleshooting
Free Pascal (2.4.4) 有一些工具可以解锁它们。 (chmls 解锁)。它是通过截断备用文件流来完成的(因此它仅适用于 NTFS)。我在 stackoverflow 上的某个地方找到了此信息,但无法快速找到链接。
桌面等虚拟文件夹可能不完全支持这一点。
Windows keeps track of downloaded files on NTFS systems, and puts certain restrictions on them. If you extract with windows explorer, this status propagates from archive to file. Using a third party tool (winrar in your case, I use INFO zip) can circumvent this.
Some descriptions and other links can be found
http://wiki.lazarus.freepascal.org/chm_backend_for_fpdoc#Troubleshooting
Free Pascal (2.4.4) has some tool to unlock them. (chmls unblock). It is done by truncating an alternate filestream (therefore it only works with NTFS). I found this info somewhere on stackoverflow, but can't quickly find the link.
It might be that virtual folders like desktop don't fully support this.
也许某些内容的引用是网络或没有 chm 文件。也许如果你可以在 CHM 编辑器中反汇编并更改路径可以修复它。
也许这可以帮助您
maybe the references to some content is to web or no chm file. maybe if you can disassamble in CHM editor and change paths can fix it.
maybe this can help you
最近的补丁对此文件类型应用了安全权限。
您需要取消阻止该文件:
http://www.helpscribble.com/chmnetwork.html
There are security permissions applied to this file type by a recent patch.
you need to unblock the file:
http://www.helpscribble.com/chmnetwork.html
不要考虑“Windows 安全权限”的多种可能性,而是使用 CHM 阅读器或使用 winrar 包装您的 CHM,然后像您一样双击查看它。
这可以节省您很多时间!
因此,两个简单的解决方案是:
拥有一个 CHM 阅读器: https://blog.kowalczyk.info/articles/chm-reader-viewer-for-windows.html
或右键单击 CHM 文件,>添加到 RAR 存档。
如果您想阅读,请双击RAR文件>;双击 CHM 文件。 BINGO!!
instead of thinking many possibilities of "windows security permission", get a CHM reader or wrap your CHM using winrar, and doubleclick to view it like you did.
It's save your time a lot!!
So, two simple solutions are:
have a CHM reader: https://blog.kowalczyk.info/articles/chm-reader-viewer-for-windows.html
OR right click CHM file/s, > Add to RAR Archive.
If you want to read it, double click RAR file > double click CHM file. BINGO!!