| View previous topic :: View next topic |
| Author |
Message |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Tue Mar 11, 2003 11:02 am Post subject: Filemask to FILELIST? |
|
|
Hi,
how can I use a filemask for more extensions with filelist ?
Ex. *.txt AND *.doc
In filedlg such things work with *.txt;*.doc
but it seems not to work with filelist.
Bye, Fabian |
|
| Back to top |
|
 |
GeoTrail Valued Contributor


Joined: 18 Feb 2003 Posts: 572 Location: Bergen, Norway
|
Posted: Tue Mar 11, 2003 11:14 am Post subject: |
|
|
It says in the helpfile that it should work | Code: | Example:
LIST LOADFILE,1,C:\CONFIG.SYS
LIST FILELIST,LB1,*.tmp
Copyright © 1995 - 2002 S.A.D.E. s.a.r.l. / All rights are reserved. |
_________________
 |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Tue Mar 11, 2003 12:16 pm Post subject: |
|
|
You probably have to cycle through each extension that you want to find. Try something like this:
| Code: | list create,1
list create,2
list create,3,SORTED
list create,4
list assign,4,"*.txt"@cr()"*.doc"
repeat
%%dir = @windir()
%%ext = @next(4)
list filelist,1,%%dir,*
repeat
list filelist,2,%%dir\%%ext,srha
repeat
%%hit = @next(2)
if %%hit
list add,3,%%hit
end
until @null(%%hit)
list clear,2
%%dir = @next(1)
until @null(%%dir)
until @equal(@count(4),@index(4))
list close,1
list close,2
info @text(3)
list close,3
list close,4 |
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Wed Mar 12, 2003 2:12 pm Post subject: |
|
|
Why don't you use this?
| Code: | list create,1
list filelist,1,c:\*.txt
list filelist,1,c:\*.bat
info @text(1)
list close,1 |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|