Win11/64: Better File Search?

Discussion in 'Software' started by HarryPotter, Dec 27, 2025.

  1. HarryPotter

    HarryPotter MajorGeek

    Hi! I sometimes have need to search files by other than a name contains method. For example, right now, I want to search my Downloads folder for archive files containing Amiga Disk Images--files with a .adf extension. How do I do that?
     
  2. foogoo

    foogoo Major "foogoo" Geek

    Windows file explorer can index zip if you enable "Search inside compressed (zipped) folders" in advanced search options.
    https://dngrep.github.io/ - Search for files in archives - zip, 7z, rar, jar, and many more
     
  3. HarryPotter

    HarryPotter MajorGeek

    I downloaded it. Thank you. :)
     
  4. the skeezix

    the skeezix Specialist

    You might want to try "Everything" (everything.exe). It's free, contains no ads, fast and extremely flexible. I've been using it for many, many years on my Win 10, 7 and 11 computers without problems.
     
  5. HarryPotter

    HarryPotter MajorGeek

    Thank you. Is there a version for Win98SE? I had one at my mother's house, but she's homeless right now. :(
     
  6. DangitallRedux

    DangitallRedux Specialist

    While there is an x86 version of Everything, a Windows 98 machine may not have enough "oomph" to run it and still be truly useable.
     
  7. the skeezix

    the skeezix Specialist

    Try this:
    1. Open your Downloads folder.

    2. Sort the folder by Extension by clicking once on Extension. You'll find it at the top of the Downloads window (and also at the top of all the other windows too).

    3. Look for ".adf". It should be near the top of the list.

    You can also sort a folder's contents by Name, Date modified, and other stuff.
     
  8. HarryPotter

    HarryPotter MajorGeek

    I can search for ".adf," but at least most of the files are zipped. Don't worry, I was able to find a lot of them: the files are named in a special way, and I am able to tell which ones are probably adf files. I could also use help with zipped dsk files as well. Thank you, though. :) DangitallRedux: is there a similar program that will work on Win98SE?
     
  9. DangitallRedux

    DangitallRedux Specialist

    Not that I recall. The basic problem would be one of hardware: RAM amounts and bus speeds were not anywhere near what they are today.
     
  10. HarryPotter

    HarryPotter MajorGeek

    Okay. It's not essential: I'd just like the option.
     
  11. the skeezix

    the skeezix Specialist

  12. HarryPotter

    HarryPotter MajorGeek

    I finally changed the mentioned Explorer setting and scanned my Downloads folder for .adf files and found too few. :( Also, the Grep program seems to just scan text files for strings: I see no option to scan archive files. :(
     
  13. Maxwell

    Maxwell Folgers

    According to the grep help page it shows screen shost of the tool that have a toggle towards the top to "Search in archives". Did you try that?
     
  14. HarryPotter

    HarryPotter MajorGeek

    I couldn't find the option, but dnGrep still looks like a text searcher. I want to find files of a certain extension within archive files.
     
  15. _nullptr

    _nullptr Major Geeky Geek Geek

    Here's a Powershell script that will search zip, rar and 7z archives for *.adf files and output the results to a file on your desktop.
    You will need to have 7-Zip installed.
    Adjust $folder to whatever folder you like and make sure the path to 7z.exe is correct.
    To run it, you can copy and paste to a Powershell window then click enter, or save it in a text file with extension ps1, then right click the ps1 script and "Run with Powershell".


    Code:
    $7z = "C:\Program Files\7-Zip\7z.exe"
    # the folder to search
    $folder = 'D:\Downloads\*'
    $logfile = "$([environment]::getfolderpath('Desktop'))\output.txt"
    $exts = @('*.zip', '*.rar', '*.7z')
    # search for *.adf files
    $pattern = '(.+\.adf)$'
    
    Get-ChildItem -Path $folder -Include $exts -Recurse | ForEach-Object {
        $allMatches = & $7z l -ba "$($_.FullName)" | Select-String -Pattern $pattern -AllMatches
    
        if ($allMatches.Matches.Count -gt 0) {
            Add-Content -Path $logfile -Value "Listing files in $($_.FullName)"
            $txt = $allMatches.Matches | ForEach-Object { ($_.Groups[1].Value -split '\s{2,}', 5)[3]}
            Add-Content -Path $logfile -Value $txt
            Add-Content -Path $logfile -Value "---"
        }
    }
    
     
  16. HarryPotter

    HarryPotter MajorGeek

    Thank you. I'd better try that soon. :)
     
  17. the skeezix

    the skeezix Specialist

    I had forgotten about $filename. In days of old when knights were bold, and Windows SE was sold, I used the "$" to hide whatever folders I wanted to hide. Then I forgot about those folders o_O
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds