Do more on the web, with a fast and secure browser!

Download Opera browser with:

  • built-in ad blocker
  • battery saver
  • free VPN
Download Opera

what is the proper search string when setting search eagine to seach my .txt file in my doument

  • Hi There,

    I am trying to customize Opera search engine to search a ' specific keyword ' from within 1 of my .txt file locate in my hard drive.

    What would be the proper string ?

    I tried #%s or ?p=%s , none of these works.

    I set like this in the search engine setting:

    C:\My Documents\doc1.txt?p=%s ( not work )
    C:\My Documents\doc1.txt #%s ( not work )

    Thank you

  • You need to specify a search engine for the search. You cannot simply search any document.

    For example

    "C:\Program Files\Search\Search.exe /file:C:\MyDocuments\doc1.txt /search:%s"

    could do, if you have that program (Search.exe) and it uses the two parameters (/file: and /search:). You also might to be able to open the document in Opera and use the internal search (Ctrl+F or .) to look for your search string. You probably could customize Opera 12- to have a local search bar/button or shortcut for the given file, but I doubt you can do it with Opium.