Autor Beitrag
ex4ct
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67


Delphi 7
BeitragVerfasst: Mi 19.07.06 17:38 
Hallo, Wie man eine laufende exe in ein andere Verzeichnis kopieren kann weiss ich, das geht so:CopyFile(PChar(application.ExeName),PChar('C:\Kopie\Kopie.exe'), true);

Meine Frage: Wie kann ich nur ein Teil meines Programmes dahin kopieren?
Also wenn ich z.B. auf den Button "Kopieren" klicke soll nur eine Procedure in der Kopie des Programmes sein.

Hoffentlich kann mir jemand helfen :)
Horschdware
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 744
Erhaltene Danke: 54

Win XP Pro, Win 7 Pro x64
Delphi 7, Delphi XE, C++ Builder 5, SAP R/3
BeitragVerfasst: Mi 19.07.06 17:42 
Ums ganz kurz zu machen: Geht nicht. (ausser mit extremstem Aufwand ).

Was hast du denn überhaupt vor? Vielleicht lässt sich das was du willst ja ganz anders lösen, ohne derartige Vorgänge.

_________________
Delphi: XE - OS: Windows 7 Professional x64
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 19.07.06 17:44 
Wenn du weißt, welche Stellen der Datei du kopieren musst, damit nur die betreffende Prozedur drin ist, kannst du das bestimmt per Filestream machen.
Ich bezweifle aber, dass sich das so ohne weiteres herausfinden lässt...

_________________
We are, we were and will not be.