try
{
EmbeddedExeTool exetool = new EmbeddedExeTool();
string path2 =Environment.CurrentDirectory; //获取指定路径
string namedll = "yqjc"; //设置默认名称
string cmd = path2 + @"\Ezcad2.9.4\abc.exe";
string dll = path2 + @"\Ezcad2.9.4\abc."+ namedll;
// abel1.Text = path2+ "\\Ezcad2.9.4\\EzCad2.dll";
//MyEncrypt.SHA_Dencrypt("test1.txt", "test2.txt", "123456"); //文件解密
if (1 == 1)
{
return;
}
if (Directory.Exists(dll)) //判断dll文件在不在
{
File.Move(cmd, Path.ChangeExtension(cmd, namedll)); //修改文件后缀名
if (Directory.Exists(dll))
{
MessageBox.Show("002-系统文件不存在!");
return;
}
}
File.Move(dll, Path.ChangeExtension(dll, "exe")); //修改文件后缀名
exetool.LoadEXE(panel1, cmd);
File.Move(cmd, Path.ChangeExtension(cmd, namedll)); //修改文件后缀名
}catch(Exception e2)
{
MessageBox.Show("系统文件未找到!,检查一下"+ e2.Message);
}
06-05
1145

06-05
1694


c#打开外部文件
04-19
252

04-19
221


jsoup获取图片教程
04-19
435

04-19
544

04-11
131

04-11
180


2024年安卓图片上传
04-11
185


安卓获取手机所有图片代码
04-11
232
