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
1151

06-05
1726


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

04-19
228


jsoup获取图片教程
04-19
444

04-19
554

04-11
135

04-11
183


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


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