I have a routine that searches a directory structure for files. Right now the file pattern is simply *.* and when it is finished, I have a cleanup routine that strips out the file extensions that I don't want (*.m3u, and files which the routine will flag as 'unknown')
What I would like to do is to populate a variable with the acceptable file extensions based on the users choice.
For example, I setup four checkboxes, each a different type of file (i.e., audio, video, etc.)
Each type has a checkbox. How can I populate a variable (ScanExt) based on the slection of checkboxes. So if the user chose only audio, the variable might read *.mp3, *.wma, and if they chose audio and video (then it would read *.mp3, *.wma, *.wmv, *.avi.
Does anyone have any suggestions on how I might acheive this?
Thanks,
CJ
What I would like to do is to populate a variable with the acceptable file extensions based on the users choice.
For example, I setup four checkboxes, each a different type of file (i.e., audio, video, etc.)
Each type has a checkbox. How can I populate a variable (ScanExt) based on the slection of checkboxes. So if the user chose only audio, the variable might read *.mp3, *.wma, and if they chose audio and video (then it would read *.mp3, *.wma, *.wmv, *.avi.
Does anyone have any suggestions on how I might acheive this?
Thanks,
CJ
Comment