• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    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

    command line switch for new tab

    Opera for Windows
    2
    2
    3968
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • woytee
      woytee last edited by

      Hello,

      I would like to create a batch script that opens a new tab instead of a new window.

      The reason for this is that I have a multimedia keyboard with a "browser button" that start the default browser with a new window.
      Unfortunately there is no way to change this behavior in the keyboard software, it only accepts applications (*.exe files).
      So I want to create a batch script, that opens a new tab in Opera and only if Opera is not running it will open a new window)
      Then I just convert the batch file to an executable (with Advanced BAT to EXE Converter) and place it somewhere on the disk.
      Only then am I able to assign the exe to my browser key.

      The problem is that the "browser key" start the application, not a link (which would rather open in a new tab), so I need to bypass this behavior somehow. Maybe somebody has another idea than the command line switch.

      I couldn't find anything on the internet, only for the old Opera.
      Since Opera is built on Chromium I also searched for Chromium switches, but couldn't find anything suitable.

      Any help appreciated.

      using Opera 89.0.4447.91 on Windows 10 Pro 64-bit

      Reply Quote 0
        1 Reply Last reply
      • burnout426
        burnout426 Volunteer last edited by
        launcher.exe "https://example.com/"
        

        That will launch example.com in a tab in the existing window. It will start Opera first if Opera is not open.

        launcher --new-window "https://example.com/"
        

        If Opera is open, that will launch example.com in a tab in a new window. If Opera is closed, that will launch Opera and open in the existing window.

        Reply Quote 1
          1 Reply Last reply
        • Locked by  leocg leocg 
        • First post
          Last post

        Computer browsers

        • Opera for Windows
        • Opera for Mac
        • Opera for Linux
        • Opera beta version
        • Opera USB

        Mobile browsers

        • Opera for Android
        • Opera Mini
        • Opera Touch
        • Opera for basic phones

        • Add-ons
        • Opera account
        • Wallpapers
        • Opera Ads

        • Help & support
        • Opera blogs
        • Opera forums
        • Dev.Opera

        • Security
        • Privacy
        • Cookies Policy
        • EULA
        • Terms of Service

        • About Opera
        • Press info
        • Jobs
        • Investors
        • Become a partner
        • Contact us

        Follow Opera

        • Opera - Facebook
        • Opera - Twitter
        • Opera - YouTube
        • Opera - LinkedIn
        • Opera - Instagram

        © Opera Software 1995-2025