foenix兄请把程序完整的写一下,如何复制eudc.tte、eudc.euf这两个文件,
我用如下程序不可以实现:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var
filename1,filename2,filename3
char;
begin
filename1:='Eudc.tte';
copyfile(filename1,pchar('c:/windows/Eudc.tte'),false);
filename2:='Eudc.euf';
copyfile(filename2,pchar('c:/windows/Eudc.euf'),false);
filename3:='Eudcedit.ini';
copyfile(filename3,pchar('c:/windows/Eudcedit.ini'),false);
end;
end.
请指教!