forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Filemask to FILELIST?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Tue Mar 11, 2003 11:02 am    Post subject: Filemask to FILELIST? Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
GeoTrail
Valued Contributor
Valued Contributor


Joined: 18 Feb 2003
Posts: 572
Location: Bergen, Norway

PostPosted: Tue Mar 11, 2003 11:14 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Tue Mar 11, 2003 12:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed Mar 12, 2003 2:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group