سلام
کسی میدونه چه جوری میشه یه برنامه سرچ فایل و پوشه نوشت؟
راستی چطور میشه مثه تو ویندوز که در سرچ از علائم * و ؟ استفاده میکنیم، تو وی بی هم استفاده کنیم؟
سلام
کسی میدونه چه جوری میشه یه برنامه سرچ فایل و پوشه نوشت؟
راستی چطور میشه مثه تو ویندوز که در سرچ از علائم * و ؟ استفاده میکنیم، تو وی بی هم استفاده کنیم؟
از fso و api می تونید استفاده بکنید.
از * و ؟ هم به همون شکل می شه استفاده کرد.
واقعا ممنون از این همه راهنمایی!
راستی شما *و؟ رو تا حالا امتحان کردی؟ چون من که امتحان کردم نشد.
این هم یه سورس برای سرچ فایل های که از api استفاده می کنه.
clsFile / colFiles (File search and File properties API classes) FAST!!!
I use these two classes to encapsulate a whole host of file oriented API calls... allowing me treat files as objects in my code and with the speed that is gained by going through the API. The clsFile class wraps around a single file, and exposes a whole host of properties of a file (and the volume it is on) including: 16 bit equivalent path, parsed filename, size, attributes (readonly, system, archive, etc), dates (created, accessed, and modified) and volume properties: label, serial no., is a cdrom, fixed disk, remote, network path, unc info, etc. (see the screen shot for the full list). Besides being a read only property class, I have modified the .Attributes enum and the .DateLastModified properties to allow changes... so that when you change the properties on the class, the corresponding properties on the file are modified. Eventually, this class could also be modified to extend functions such as Rename, Delete, Copy and Move that would work through the Windows Shell. I have the code to do this, but never bothered patching it in since in my coding, I never ran into the situation where I needed to do these actions with the file object by itself. The colFiles class acts as a collection for the clsFile class. In addition to the methods you would expect from a collection, this class also encapsulates the API functions for file searching (including recursive directory searches). If you EVER intend to use a file search in your applications, going through the API is the ONLY way to achieve this in my opinion. You'll find many examples that try to use directory list boxes to perform file scans, but these examples will be painfully slow. The API, on the other hand, is extremely fast. As fast as the built in Find/Search screen in Windows Explorer. Plus... you are able to search through paths other than your mapped drives. This covers the entire Windows Explorer directory tree (network drives, namespace extensions, etc). Don't judge this class by the screen shots before knowing that in the screen shot example, I was searching across my network which consists of a slow 10Mb hub. You'll have to try it for yourself on your set up to see why I swear by these two classes when performing seek and file property operations. For updates to this or other cool vb code or controls, check my web page:If you are not currently involved in the coding contest, I WOULD REALLY APPRECIATE YOU VOTING FOR MY CODE. Will only take a minute or two to make an account, and while it won't make me any money... =) it will encourage me to keep posting good quality code and controls like this one. (check out my other posts too). =)کد:برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید
کد:برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید
ین هم یکی دیگه که از api استفاده می کنه.
File & Folder Search
A program to search files and folders like the one supplied with Windows. My Windows searcher keeps failing after a few weeks so I put this one together. I used as much API as I could.
کد:برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید
این هم یکی دیگه
FilesSearch
This sub/function searches your hard drive(s) or directories for file(s) like the Windows 'Find Files or Folders...'. It uses mainly the Dir() command and can be used with any programs and visual basic I have encountered. This helps uses to quickly find a file or program for their applications.
کد:برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید
این هم یکی دیگه که خیلی سریع هست.
FSE(Fast Search Engin)
FSE ( Fast Search Engin ) Find your files easily and fast. This program is very faster than WINDOWS SEARCH. Support WILDCARD in searching. No call API,No DLL,No OCX,No DirectoryListBox,No FileListBox. At last don 't forget to VOTE!
کد:برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید
شما این ها رو داونلود کن و بخون اون وقت یاد می گیری انشالله
حالا بازم راهنمایی می خوای؟![]()
حالا شد یه چیزی.
دستت درد نکنه
هم اکنون 1 کاربر در حال مشاهده این تاپیک میباشد. (0 کاربر عضو شده و 1 مهمان)