Forum moved here!

# Home / Command line option “-search”

JoWeb-de

Can you please implement a command line option anolog to the Acrobat start option
/A "&search="xyz
to open the document and position on the first ocurrence of “xyz”?.
If so, I can get rid of Acrobat completely…

Jo

GitHubRulesOK

I wrote a workaround and it is an old rough personal attempt that’s not tested with current version, but may with adaptions suit your scripted usage it is a vbs wscript sendkeys fiddle using %FindString% //job:VBSS so can be unreliable in keeping focused.
MyNotes/LookInClass.cmd at master · GitHubRulesOK/MyNotes

Note see next comment means the script will need a mahousive overhaul

kjk

@JoWeb-de I’ve added a -search options (as well as [Search("<file>","<search-term>")] DDE command).
It’s available in pre-release build 14125 or later https://www.sumatrapdfreader.org/prerelease

JoWeb-de

Hi kjk,
great! I tried your prerelease, and it’s just what I wanted. Thank you.

Jo