var
command:string;
begin
if OpenDialog1.Execute then
command:='command.com /C copy '+ OpenDialog1.FileName+' d:\123.exe ';
winexec(pchar(command),sw_show);
end;
注意:选择路径不能有中文名
该成这样是不是就可以有中文路径了
var
cmd:string;
begin
if OpenDialog1.Execute then
cmd:='cmd /C copy '+ OpenDialog1.FileName+' d:\123.exe ';
winexec(pchar(command),sw_show);
end;
注意:选择路径不能有中文名
var
command:string;
begin
if OpenDialog1.Execute then
command:='command.com /C copy '+ OpenDialog1.FileName+' d:\123.exe ';
winexec(pchar(command),sw_show);
end;
注意:选择路径不能有中文名