Autor Beitrag
mk3
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Do 18.09.03 16:52 
Hallo!

wie kann ich eine beliebige Datein (*.doc oder *.pdf oder *.jpg usw.)
in einem anderen Verzeichnis unter einem anderen Name schreibgeschützt schpeichern.

Danke für jeden Hinweis!

mk
JustusJonas
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 222



BeitragVerfasst: Fr 19.09.03 08:51 
Suche mal in der Hilfe nach Copy

Greetz
mk3 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Fr 19.09.03 09:10 
Das hilft mir leider nicht weiter :(
Tana´Ri
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 230



BeitragVerfasst: Fr 19.09.03 09:23 
Stichworte: (siehe hilfe)

CopyFile -> MoveFile

_________________
mfg
Tana´Ri
maximus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 896

Win XP, Suse 8.1
Delphi 4/7/8 alles prof
BeitragVerfasst: Fr 19.09.03 10:40 
@schreib schützen: SetFileAttributes()

_________________
mfg.
mâximôv
mk3 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Fr 19.09.03 11:15 
Danke sehr für die Antworten.

ausblenden Delphi-Quelltext
1:
2:
CopyFile(PChar(AlteDateiName), PChar(Verzeichnis + NeueDateiname),  false);
SetFileAttributes(PChar(Verzeichnis + NeueDateiname), FILE_ATTRIBUTE_READONLY);


Es klappt!
mk

Moderiert von user profile iconKlabautermann: Delphi-Tags hinzugefügt.