访问资源中的.exe文件?

发布于 2024-12-15 21:29:35 字数 133 浏览 3 评论 0 原文

我正在处理的项目中的资源中有一个加密程序,我需要像这样访问该文件。

 Dim fs As New FileStream(filepath, FileMode.Open)

有什么帮助吗?

I have an encrypted program in my resources in a project I'm working on and I need to access that file like this.

 Dim fs As New FileStream(filepath, FileMode.Open)

Any help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

海夕 2024-12-22 21:29:35

尝试 GetManifestResourceStream - 它为您提供了一个流按名称读取资源。例如,此流可用于解密和/或写入真实文件和/或作为程序集加载(如果嵌入资源是 .NET exe/DLL)...

有关示例代码,请参阅 http://www.eggheadcafe.com/microsoft/VB-NET/33899321/how-to-extract-a-resource-to-a-file.aspx

try GetManifestResourceStream - it gives you a stream to read the resource by name. This stream can be used for example to decrypt and/or write to a real file and/or load as an Assembly (if the embedded resource is a .NET exe/DLL)...

For sample code see http://www.eggheadcafe.com/microsoft/VB-NET/33899321/how-to-extract-a-resource-to-a-file.aspx .

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文