magicfile icon وبسایت فایل سحرآمیز - magicfile.ir

دانلود نمونه سورس و کد جستجوگر فایل در سی شارپ

دانلود-نمونه-سورس-و-کد جستجوگر-فایل-در-سی-شارپ
توضیحات کوتاه و لینک دانلود
Today, in this post, for you, dear users of the Saharamaz file website, we have prepared a sample source and file search code in C# ready for download.

دانلود - Download

لیست فایل های مشابه

لینک کوتاه : https://en.magicfile.ir/?p=3029
توضیحات کامل در مورد فایل

دانلود نمونه سورس و کد جستجوگر فایل در سی شارپ

Today, in this post, for you, dear users of the magic file website, we have prepared a sample source and file search code in C# ready for download.

On a Windows PC, I tried to search my hard drive for a file that contained a certain string. This was not possible using Windows Explorer. So, I decided to write my own file explorer.

نمونه تصاویر در زمان اجرا

نمونه سورس و کد جستجوگر فایل در سی شارپ

You must enter the search directory so the program knows where to look for files and directories. If you check the "Include subdirectories" checkbox, the program will recursively search all subdirectories in the search directory. The specified filename can be something like "*.wav;*.mp3;Christma??ree.*". This program lists all files and directories matching this file name.

You can also use some restrictions to limit the items found. Each constraint must be enabled by checking the appropriate checkbox and the required parameter for this constraint can be entered on the right side of the checkbox.

The string program converts this parameter to a byte sequence using ASCII or Unicode encoding (depending on your choice) and then searches each file for occurrences of this byte sequence.

  • "Files newer than" will only list those with a larger LastWriteTime parameter.
  • "Files older than" will only list those that have a LastWriteTime parameter less than that.
  • "Files containing string" will list only those that contain the string parameter you entered.

Click the "Start" button to start the search. Items found will be listed below. If the search takes a long time and you want to cancel it, you can click the "Stop" button to stop the search.

If you double-click an item representing a file, the program will open the file in the program associated with the file extension.

If you right-click on an item and select "Open Containing Folder," the program will open the folder containing the file or directory in Windows Explorer.

If you want to write the search results to a text file, enter the delimiter used to separate the items in the text file and then click the "Write results to text file..." button.

این اپلیکیشن از دو بخش اصلی تشکیل شده است:

  • کلاس MainWindowتمام کارهای رابط کاربری را انجام می دهد.
  • کلاس Searcherمنطق تجاری را برای جستجوی FileSystemInfoاشیا ارائه می دهد.

When the user clicks the "Start" button, the Searcher.Start method is executed. A new thread called SearchThread is started. It searches files and directories and matches the parameters entered by the user. If it finds a matching FileSystemInfo object, it raises an asynchronous FoundInfo event so that it can retrieve the object from MainWindow's list and update its results. When the string ends, set the member to . This method checks if it exists every time it runs, so there can never be more than one thread running at once.FileSystemInfoFoundInfoEventArgsm_threadnullSearcher.Startm_threadnull

When the user clicks the "Stop" button, the Searcher.Stop method is executed. This sets the m_stop member to true, so that SearchThread can detect this change and stop itself as soon as possible. Note that this operation is safe, as a boolean variable requires only one operation step to set.

برای شما کاربر عزیز پیشنهاد دانلود داده می شود.

Click on the link below to download the sample source and file search code in C#

برای دریافت اینجا کلیک کن

فایل های که ممکن است نیاز داشته باشید

نظرات کاربران

کد امنیتی

ارسال کننده نظر حامد - 2023/8/14 3:44:27 am
سلام من فایل رو دانلود کردم بسیار خوب بود
 
پاسخ پشتیبانی فایل سحر آمیز
سلام تشکر از لطف شما
 

لیست فایل های ویژه وبسایت

بهترین-سرویس-پوش-نوتیفیکیشن-اسکریپت-مدیریت-اعلان-و-ساخت-پوش-نوتیفیکیشن-سایت-و-ارسال-پوش-از-طریق-php
The best push notification script service for managing notifications and making site notification push and sending push through php

دانلود-نرم-افزار-ترجمه-خودکار-فایل-های-po-,-pot-بصورت-کامل-برای-تمامی-زبان-ها-از-جمله-فارسی
دانلود نرم افزار ترجمه خودکار فایل های po , pot بصورت کامل برای تمامی زبان ها از جمله فارسی

دانلود-نرم-افزار-تبدیل-فایل-متنی-تکست-txt-به-وی‌سی‌اف-vcf-(مخاطب-موبایل)
دانلود نرم افزار تبدیل فایل متنی تکست txt به وی‌سی‌اف vcf (مخاطب موبایل)

دانلود-نرم-افزار-تغییر-زبان-سورس-و-کد-ویژوال-استودیو-(عناصر-دیزاین-طراحی-فرم-ها)
دانلود نرم افزار تغییر زبان سورس و کد ویژوال استودیو (عناصر دیزاین طراحی فرم ها)