• 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

    Starting Opera from a .BAT file

    Opera for Windows
    5
    15
    8381
    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.
    • burnout426
      burnout426 Volunteer @zalex108 last edited by

      @zalex108 said in Starting Opera from a .BAT file:

      But this keeps the Command Prompt opened

      Oops. I was testing by typing in a command prompt instead of double-left-clicking a batch file. It launches Opera and focus it without launching a new command prompt. But, it's not what the OP wanted, so never mind.

      Reply Quote 0
        1 Reply Last reply
      • burnout426
        burnout426 Volunteer last edited by

        What about?:

        test.bat

        cmd /c "C:\Program Files\Opera\launcher.exe"
        exit
        
        Reply Quote 0
          burnout426 1 Reply Last reply
        • burnout426
          burnout426 Volunteer @burnout426 last edited by

          The "exit" is not needed.

          Reply Quote 0
            1 Reply Last reply
          • alobpreis
            alobpreis last edited by

            Start expects the first double quote to be the window title, so what you should do is simply:

            start "" "C:\Program Files (x86)\Opera\launcher.exe"

            Reply Quote 0
              1 Reply Last reply
            • A Former User
              A Former User @zalex108 last edited by

              @zalex108

              Sorry for being so slow, but thank you, zalex.

              I switched a couple occurences from

              start "the whole/damn/string"

              to

              start "the whole"/damn.string

              because I liked your quotes specificity better than the mine.

              And, magically, it started to work.

              Reply Quote 0
                alobpreis zalex108 2 Replies Last reply
              • alobpreis
                alobpreis @Guest last edited by

                @martinrinehart , that's because what I posted. You "fixed" it by making the first parameter not start with a quote, but that way of specifying a path is nonstandard. I would highly recommend placing the whole path between quotes and just add a window title parameter (empty if you like), like what I suggested.

                Reply Quote 0
                  A Former User 1 Reply Last reply
                • A Former User
                  A Former User @alobpreis last edited by

                  @alobpreis Thank you. I'll try it.

                  Reply Quote 0
                    1 Reply Last reply
                  • zalex108
                    zalex108 @Guest last edited by zalex108

                    @martinrinehart

                    Glad to know that ๐Ÿ˜‰

                    @alobpreis

                    I've tried your suggestion - since didn't know the other one is not standard - but your suggestion didn't worked in a scenario where would be better to avoid too many | "'s|.

                    Start"" "D:\Time Machine\New folder\Opera Neon\Application\Neon.exe"

                    But,

                    0_1512585559627_2017-12-06_193851.png

                    Works fine - despite would exist an easy option -.

                    "You cannot know the meaning of your life until you are connected to the power that created you". ยท Shri Mataji Nirmala Devi

                    Reply Quote 0
                      alobpreis 1 Reply Last reply
                    • alobpreis
                      alobpreis @zalex108 last edited by

                      @zalex108 said in Starting Opera from a .BAT file:

                      avoid too many | "'s|.

                      I don't understand you. My option has less double quotes than the one that worked. What issue did you have with start "" "D:\Time...\Neon.exe"? (I hope it's not the missing space after "start" in your post, right?)

                      Reply Quote 0
                        zalex108 1 Reply Last reply
                      • zalex108
                        zalex108 @alobpreis last edited by zalex108

                        @alobpreis said in Starting Opera from a .BAT file:

                        @zalex108 said in Starting Opera from a .BAT file:

                        avoid too many | "'s|.

                        I don't understand you. My option has less double quotes than the one that worked. What issue did you have with start "" "D:\Time...\Neon.exe"? (I hope it's not the missing space after "start" in your post, right?)

                        I mean about that too, to use less "'s | "Double quotes" |, because that I've tested but did not work.
                        I've let an space between the double quotes and the quotes to start the path too - as seen in your post -.

                        --

                        Right now, tested without the space, same result.

                        OK!
                        An space between Start and double quotes and between the quotes of the path.

                        Now works.

                        "It was the missing space ๐Ÿ™„" xD

                        Then,
                        @martinrinehart Once tested I recommend the @alobpreis version, it works it's more convenient to avoid the "'s - |double quotes| -, you can "copy as path" and it's enough to launch the command or bat.

                        Now I learnt the right way.

                        Thanks both ๐Ÿ˜‰

                        "You cannot know the meaning of your life until you are connected to the power that created you". ยท Shri Mataji Nirmala Devi

                        Reply Quote 1
                          1 Reply Last reply
                        • 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-