COChOnOu Posted August 30, 2006 Posted August 30, 2006 Hello, I use "_FileListToArray" function to check if a folder contains files with a given extension ("*.mp3") but finally, i want to check if the folder contains audio files ("*.mp3|*.wma|*.wav|*.ogg ...) i'm sure there is a better way than to use a function per extension on each folder no ? so i can't find this way So ... if you can help me ....
Valuater Posted August 30, 2006 Posted August 30, 2006 (edited) use file list to arraywith "*.*" then... $file_list = stringright($array_of_files, 4) if $file_list = ".mp3" or $file_list = ".wav" or..... or............................... if StringInStr($file_list, ".mp3") Or StringInStr($file_list, ".wav") Or StringInStr($file_list, ".wma") Then ; do what you want EndIf 8) Edited August 30, 2006 by Valuater
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now