ورود

View Full Version : جستجو درfolder



ashkan_gorg
سه شنبه 04 تیر 1387, 09:26 صبح
سلام دوستان میخواستم بدونم آیا میشه پیدا کرد که توی یک فولدر چه تعداد فایل وجود داره واسم این فایل ها رو پیدا کرد:خجالت:

mehran_337
سه شنبه 04 تیر 1387, 09:34 صبح
از تابع adir استفاده کنید.این تابع نام فایلها را بهمراه مشخصات دیگر درون یک آرایه می ریزد . به Help مراجعه کنید

ashkan_gorg
سه شنبه 19 شهریور 1387, 15:17 عصر
ببخشید دوستان من اگه بخوام یک فولدر را در یک درایو یازیرشاخه جستجو کنم باید از چه دستوری استفاده کنم.

binyaz2003
سه شنبه 19 شهریور 1387, 15:32 عصر
جوابتون قبلا داده شده است.

ashkan_gorg
سه شنبه 19 شهریور 1387, 16:11 عصر
آخه این فقط فایل هارو جستجو می کنه نه فولدرهارو

binyaz2003
سه شنبه 19 شهریور 1387, 16:29 عصر
قسمت از راهنماي دستور ADir

cAttribute
Specifies the inclusion of subdirectories and hidden or system files.
cAttribute can contain any combination of D, H, and S. Including D returns subdirectory names of the current directory in addition to file names that match the file skeleton specified in cFileSkeleton. Including H returns information about hidden files that match the file skeleton specified in cFileSkeleton. Including S returns information about system files that match the file skeleton specified in cFileSkeleton.

Include an empty string in cFileSkeleton to return just subdirectory names, hidden files or system files.

You can include V in cAttribute to return the volume name of the current drive. Only the volume name is returned to the array if V is included with D, H, or S. The volume name is stored in the first array element and the remainder of the array is truncated.