Forum: Win32/Win64 API (native code)
Prism
by sanguinarus,
8. Nov 2006
ich habe es
textbox1.text:= System.io.file.getcreationtime(datname);
&file.setcreationtime(datname, datatime.parse(textbox1.text);
wichtig system zeit wieder zürück setzten
System.datatime.now.now_today;
Forum: Win32/Win64 API (native code)
Prism
by sanguinarus,
7. Nov 2006
ich habe es!!
lösche erst alle Attribute und schreibe sie dann neu!
datname := Openfiledialog1.FileName;
fi := fileinfo.Create(datname);
&file.SetAttributes (datname, System.IO.FileAttributes.Normal);
if checkbox1.Checked then
begin
fi.Attributes := fi.Attributes or System.IO.FileAttributes.ReadOnly;
end;
Forum: Win32/Win64 API (native code)
Prism
by sanguinarus,
7. Nov 2006
alos ich lade die datei mit openfiledialog
dann zeigt es mir an wie die eigenschaften des programmes sind
nur mal klappt es das die datei versteckt und eine systemdatei
ist und manchmal nicht
Forum: Win32/Win64 API (native code)
Prism
by sanguinarus,
7. Nov 2006
also mit
klappt leider auch nicht kann man das nicht irgenwie über eine add
funktion machen?
Forum: Win32/Win64 API (native code)
Prism
by sanguinarus,
5. Nov 2006
ich will das attribut bei einer datei änder und
zwar system und versteckt soll sie sein
habe
begin
datname := Openfiledialog1.filename;
&file.setattributes(datname, system.io.fileattributes.hidden);
&file.setattributes(datname, system.io.fileattributes.system);
end
nur er macht immer nur das vas zu schluss
steht also system aber die datei ist nicht versteckt