访问资源中的.exe文件?
我正在处理的项目中的资源中有一个加密程序,我需要像这样访问该文件。
Dim fs As New FileStream(filepath, FileMode.Open)
有什么帮助吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我正在处理的项目中的资源中有一个加密程序,我需要像这样访问该文件。
Dim fs As New FileStream(filepath, FileMode.Open)
有什么帮助吗?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
尝试
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 .