theFiles=getFiles ("H:\\Try"+"\\"+"*")
theImgType=#(".bmp", ".jpg",".jpe",".jpeg",".cin",".gif",".hdr",".pic",".exr",".fxr",".png",".psd",".rgb",".sgi",".rla",".rpf",".tga",".vda",".icb",".vst",".tif",".yuv",".dds")
myProxyType=#(".vrmesh", ".mib",".fpx")
myVideoType=#(".avi", ".mpg",".mpeg",".mov")
fn generateUnknowFile theArr=
(
myFile=#()
fileTypeArr=theImgType+myProxyType+myVideoType
theIcon=AddIconPath+"\\"+"Unknown.png"
for i in theArr do
(
for u in fileTypeArr do
(
theFile=i
myType=toLower (getFilenameType (filenameFromPath theFile))
otherType=u
if myType!=otherType do append myFile theFile
)
)
myFile
--print myFile
)
generateUnknowFile theFiles
The problem is, How to get other extension other than in theImgType,myProxyType,myVideoType like ["H:\\Try\apple.dll"].
I try using my function above, but seem it fail, it constantly generate the file that contain extension in the theImgType,myProxyType,&myVideoType
Thank you very much
miauu · 2013-04-21