iT邦幫忙

0

請問windows如何快速搜尋幾千個PDF, Word裡面的內容是否包含XXXX?

  • 分享至 

  • xImage

請問windows如何快速搜尋幾千個PDF, Word裡面的內容是否包含XXXX?

想要在幾千個 PDF, Word, Excel 快速找出含有 XXXX 字
能批量顯示位子跟標籤,點兩下能打開文件跳轉該位子

我有找到fileseek,不過他需要很貴的費用,請問有開源或是免費版本嗎?

ACE iT邦新手 5 級 ‧ 2023-12-12 08:34:52 檢舉
Everything,這個免費而且能符合你需求
小MIS iT邦研究生 1 級 ‧ 2023-12-12 08:48:07 檢舉
您好,Everything 不能搜尋excel, word, pdf內容文字
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

3
hokou
iT邦好手 1 級 ‧ 2023-12-12 09:16:56
最佳解答

讓 Windows 10 檔案總管比你想像更好用的11條小技巧

裡面提到的第 5 點,利用檔案總管搜尋
在上方的「搜尋」-「進階選項」裡勾選「檔案內容」

或是提到的 DocFetcher

小MIS iT邦研究生 1 級 ‧ 2023-12-13 09:23:54 檢舉

謝謝您!

1
阿摔
iT邦新手 4 級 ‧ 2023-12-12 10:16:28
$folderPath = "資料夾路徑"

# 指定搜尋的文字內容
$searchText = "要搜尋的文字內容"

# 取得指定資料夾中所有檔案
$fileList = Get-ChildItem -Path $folderPath -File -Recurse

# 搜尋每個檔案,列出包含指定文字內容的檔案名稱
foreach ($file in $fileList) {
    $filePath = $file.FullName
    $fileContent = Get-Content -Path $filePath -Raw
    if ($fileContent -match $searchText) {
         Write-Host "File with content found: $($file.FullName)"
    }
}

用ChatGPT給的Powershell範例改了一下

小MIS iT邦研究生 1 級 ‧ 2023-12-13 09:23:40 檢舉

謝謝您,但這個只能查 txt 類型的

我要發表回答

立即登入回答