The Daily Click ::. Forums ::. Klik Coding Help ::. Finding file types in a folder
 

Post Reply  Post Oekaki 
 

Posted By Message

Coop



Registered
  15/08/2004
Points
  347
18th July, 2005 at 13:28:37 -

I'm trying to make an application for Starcraft replays. I want to know how if possible how to search a folder for a certain type of file (.rep). Then I want the file names to be listed on the screen.
Thanks.

 
...

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
18th July, 2005 at 18:25:47 -

Use a list object, and the "Load file list" action. You have to provide a wild card, in this case, to list all .rep files, use:

"C:\My folder\*.rep"

To list all files in that folder

"C:\My folder\*.*"

 
- Tigerworks

Crystal Clear (H.E.S)

Possibly Insane

Registered
  06/10/2002
Points
  2548
19th July, 2005 at 01:51:39 -

Hey Tigsy i was doing this the other day, but i was having trouble with what syntax to use if i wanted it to filter multiple file types.
eg *.WMA *.MP3
I just worked around it by having two List objects, one for MP3's and one for WMA's. but itd be alot more efficient being able to do it all in one.

 
HES homepage:
http://www.distinctiv-efair.com/heretic/studios
Crystal Clear Productions: http://www.distinctiv-efair.com/heretic/crystalclear
   

Post Reply



 



Advertisement

Worth A Click