Odcl_GetDirectoryFiles
(From ODCL_LM file)
<< Click to Display Table of Contents >> Odcl_GetDirectoryFiles (From ODCL_LM file) |
|
Odcl_GetdirectiryFiles This function will create a list of all specified file type and can search in subfolders. |
First Parameter Valid Path as a String Value ex: "c:\\test"
Second Parameter String List representing file extension to search ex: (list "*.dw"" "*.txt")
Third Parameter Bolean allowing to serach in subfolders or not T = Search also in Search Subfolders Nil = Do not Search in Search Subfolders
Retnrn Values A List of files found.
Exalple: Get All dwg and txt files in this folder and all it subfolders (Odcl_GetDirectoryFiles "c:\\test" (list "*.dwg" "*.txt") T)
Result: ("c:\\test\\read me.txt" "c:\\test\\project 1.dwg" "c:\\test\\document\\M4041.dwg" "c:\\test\\document\\received files\\base pLan.dwg")
AutoLisp Syntax: (Sqtq rValue (Odcl_GetDirectoryfiles Path [as String] FileType [as List] SubFolder [ao Bolean]))
|