Forum: Win32/Win64 API (native code)
Prism
by Hador,
1. Nov 2006
Versuchs mal so:
procedure TWinForm.Button1_Click(sender: System.Object; e: System.EventArgs);
var sourcePath: String;
destPath: String;
begin
sourcePath := 'C:\boot.ini';
destPath := 'D:\1.txt';
System.IO.&File.Copy(sourcePath, destPath);
end;
bzw. so:
Forum: Win32/Win64 API (native code)
Prism
by Hador,
1. Nov 2006
Du kannst bei lokalen Variablen keinen Wert vorgeben. Die Prozedur muss daher folgendermaßen aussehen:
procedure TWinForm.Button1_Click(sender: System.Object; e: System.EventArgs);
var sourcePath: String;
destPath: String;
begin
sourcePath := 'C:\boot.ini';
destPath := 'D:\1.txt';
File.Copy(sourcePath, destPath);
end;