Page 1 of 1 1
Topic Options
#174401 - 2007-03-02 10:09 AM Function Dir without dots
Eicherlist Offline
Lurker

Registered: 2007-03-02
Posts: 2
hi

I need a files listing without the dots at the beginning. How can I filter this dots.

thx rene

Top
#174402 - 2007-03-02 11:49 AM Re: Function Dir without dots [Re: Eicherlist]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
I think the DirPlus() UDF and some others can help you. Do a search in the UDF forum or take a quick look at http://www.kixtart.org/udf
or exclude the dots while you are enumerating the results
 Code:
Dim $FileName
$FileName = Dir("C:\00\")
While $FileName <> "" AND @ERROR = 0
	If $FileName <>  "." AND $FileName <> ".."
		? $FileName
	EndIf
	$FileName = Dir()
Loop


Edited by Witto (2007-03-02 11:59 AM)

Top
#174406 - 2007-03-02 02:08 PM Re: Function Dir without dots [Re: Witto]
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
This is covered in the FAQ.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#174418 - 2007-03-02 05:02 PM Re: Function Dir without dots [Re: Les]
Eicherlist Offline
Lurker

Registered: 2007-03-02
Posts: 2
thanks to everybody
rene

Top
#174438 - 2007-03-03 05:47 AM Re: Function Dir without dots [Re: Eicherlist]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Or use any of the ready-made DIR UDFs, e.g. DIRLST() or DIRPLUS()
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.053 seconds in which 0.023 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org