Autor Beitrag
direction4delphi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 84

WIN 95, WIN 98, WIN ME, WIN NT, WIN 2000, WIN XP, VISTA
D2 Prof, D4 Prof,D2005 Prof, Delphi4Php
BeitragVerfasst: So 02.04.06 18:54 
wie kann ich checken ob es sich bei einer pfadangabe wie c:\test\test.tes um eine datei oder einen ordner handelt? da es auch ordner mit einem punkt gibt hilft sie function ExtractFileExt(Datei) nicht weiter. auch das auslesen der Attribute bring ich irgend wie nicht hin.

könnte zwar den anzeigetyp auslesen aber in anderen sprachen hinkt dann der vergleich.

hoffe jemand hat einen tip -> suche hat mich nicht weiter gebracht

schon mal danke

mfg
direction4delphi

_________________
Warning: dates on calendar are closer than they appear.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 02.04.06 19:01 
ausblenden Delphi-Quelltext
1:
2:
if (FileGetAttr('c:\test.txt') AND faDirectory = faDirectory) then 
  Showmessage('Das ist ein Ordner');

_________________
We are, we were and will not be.
direction4delphi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 84

WIN 95, WIN 98, WIN ME, WIN NT, WIN 2000, WIN XP, VISTA
D2 Prof, D4 Prof,D2005 Prof, Delphi4Php
BeitragVerfasst: Mo 03.04.06 06:35 
user profile iconGausi hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
2:
if (FileGetAttr('c:\test.txt') AND faDirectory = faDirectory) then 
  Showmessage('Das ist ein Ordner');


So kann man auf der Leitung stehen, Danke

mfg
direction4delphi

_________________
Warning: dates on calendar are closer than they appear.