CMD launch microft-edge in private mode to google search string syntax


  1. Posts : 2
    windows 10
       #1

    CMD launch microft-edge in private mode to google search string syntax


    I really am stuck

    I have a search string of "kent local car hire" I want to echo that to the Microsoft-edge browser with that search string

    entered into the browser in google search.


    start micrsoft-edge: Google

    -private


    Reason behind all of this is that I need to write a script to search for certain strings in private mode on google to check

    absolute ranking for keywords for my website.

    So I wanted to fire each long tail keyword indervidually in private mode from the CMD to check this.

    then I will just replicate the line or put a if else endif kinda statement in if thats the same in CMD as CSH KSH c etc

    If you peeps can shed any light on this I would me more than greatful

    Cheers all

    Rich
      My Computer


  2. Posts : 42,943
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    How to start Edge with batch file parameters - Microsoft Community

    may help.

    And using Autohotkey here is an idea for launching an in private session:
    How to launch Edge -inprivate by default Dan S. Charlton

    http://www.trishtech.com/2015/08/use-inprivate-mode-in-edge-browser/

    However, you cannot launch the Edge browser in the InPrivate browsing mode through the command line. This is because the Edge browser is a Metro app and does not really support command line parameters like its predecessor does.
      My Computers


  3. Posts : 2
    windows 10
    Thread Starter
       #3

    Wow thanks thats perfect

    Is there a way to direct a search string into the launched google webpage
    like

    echo "cars" > https://www.google.co.uk

    or | pipe

    https://www.google.co.uk | echo "car"

    Cheers

    Rich
      My Computer


  4. Posts : 42,943
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    I guess you could experiment with autohotkey- it's very good at manipulating windows, so if you could identify a way of directing the string to the appropriate field, that could work.

    Somewhat as the example cited above.

    When you launch a browser, the address field is the active one and also provides a search function, so simply sending the characters would probably work.

    This is easy with Firefox:
    HowTo: Run Firefox From The Command Line nixCraft
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 19:10.
Find Us




Windows 10 Forums