Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

informacij o fajlu

[es] :: Pascal / Delphi / Kylix :: informacij o fajlu

[ Pregleda: 2217 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Bojann
Zrenjanin

Član broj: 13255
Poruke: 217
*.dialup.neobee.net.



Profil

icon informacij o fajlu25.12.2005. u 11:05 - pre 223 meseci
kojom funkcijom mogu da doijem informacije o nkom fajlu?
 
Odgovor na temu

Passwd

Član broj: 54624
Poruke: 640
*.adsl.net.t-com.hr.



Profil

icon Re: informacij o fajlu25.12.2005. u 12:15 - pre 223 meseci
Otvoris help i lijepo ides po njemu )

GetFAttr (procedure) (Dos unit and WinDos unit)

Returns the attributes of a file.

Declaration:
procedure GetFAttr(var F; var Attr: Word);

Target:
Windows, Real, Protected

Remarks:
F must be a file variable (typed, untyped, or text file) that has been
assigned but not opened.

See Also:
GetFTime
SetFAttr
SetFTime

Sample Code:

{Getfattr.PAS}

{Sample code for the GetFAttr procedure.}

{ For Windows: }
{ uses WinDos,WinCrt; }

uses Dos;

var
F: file;
Attr: Word;
begin
{ Get file name from command line }
Assign(F, ParamStr(1));
GetFAttr(F, Attr);
Writeln(ParamStr(1));
if DosError <> 0 then
Writeln('DOS error code = ', DosError)
else
begin
Write('Attribute = ', Attr);
{ Determine attribute type using file attribute constants }
if Attr and ReadOnly <> 0 then { For Windows: faReadOnly }
Writeln('Read only file');
if Attr and Hidden <> 0 then { For Windows: faHidden }
Writeln('Hidden file');
if Attr and SysFile <> 0 then { For Windows: faSysFile }
Writeln('System file');
if Attr and VolumeID <> 0 then { For Windows: faVolumeID }
Writeln('Volume ID');
if Attr and Directory <> 0 then { For Windows: faDirectory }
Writeln('Directory name');
if Attr and Archive <> 0 then { For Windows: faArchive }
Writeln('Archive (normal file)');
end; { else }
end.


itd,itd i naci ces sve funkcije i primjere za njih

poz
 
Odgovor na temu

Bojann
Zrenjanin

Član broj: 13255
Poruke: 217
*.dialup.neobee.net.



Profil

icon Re: informacij o fajlu25.12.2005. u 14:32 - pre 223 meseci
U delphiu 7 ne postoji funkcija getfattr
 
Odgovor na temu

Passwd

Član broj: 54624
Poruke: 640
*.adsl.net.t-com.hr.



Profil

icon Re: informacij o fajlu25.12.2005. u 14:54 - pre 223 meseci
Govorio sam za Pascal... evo ti mali primjercic u attachu da dobijes neke osnovne informacije u delphiu..ako ti bude trebalo jos samo reci, uglavnom nije tesko!
Prikačeni fajlovi
 
Odgovor na temu

[es] :: Pascal / Delphi / Kylix :: informacij o fajlu

[ Pregleda: 2217 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.