在我们的系统中保存任何zip文件时可以运行任何exe文件吗? [英] can we run any exe while we save any zip file in our system.

查看:73
本文介绍了在我们的系统中保存任何zip文件时可以运行任何exe文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们保存包含该exe的任何zip文件时,c#是否提供运行该exe的代码.

Does c# provide code to run an exe when we save any zip file containing that exe.

推荐答案

我个人对此有点担心那:特别是如果ZIP归档文件受密码保护.
但是,当然有可能:如果没有别的,您可以将ZIP文件中的EXE文件加载到内存中并执行该文件.这里有一篇文章介绍如何执行内存执行部分:加载EXE文件并从内存中运行 [ ^ ]
Personally, I''d be a little nervous about doing that: particularly if the ZIP archive is password protected.
However, it is certainly possible: if nothing else, you can load an EXE file into memory from the ZIP and execute that. There is an article describing how to do the memory execute part here: Load an EXE File and Run It from Memory[^]


这篇关于在我们的系统中保存任何zip文件时可以运行任何exe文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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