Can I tell Opera which session to use when launching a page?
-
deandog last edited by
I normally launch Opera and then do a Ctrl-Shift-N to launch a private browsing session. From an external program that I wrote in FoxPro, I can launch a tab in the first session by using the following command, where variable lcUrl contains the link to be launched:
RUN START "C:\Program Files (x86)\Opera\launcher.exe" &lcUrl
(The syntax is probably different in other programming languages. RUN START tells FoxPro to execute a DOS Shell command.)
The command always launches the URL in a new tab on my first Opera session, and there are some links that I would prefer to launch in the second session. Is there an additional switch I can add to tell Opera that I want the page to open up in the second session?
Thanks in advance for any suggestions.
-
burnout426 Volunteer last edited by
You can use the --incognito or --private switch to start up Opera in private mode. Haven't tested if that works when specifying a URL when Opera is already open and there's a private window open though. You can try though.
There's --new-window that launches the URL in a new window. It's not a new session though.
There's --user-data-dir= you can use to make Opera use a whole different profile, which of course will use a whole different session. See this post for examples.
You can have multiple standalone installations. Each will have its own profile and therefore its own session. You just point to the launcher.exe for the installation you want.
-
deandog last edited by
@burnout426 Sincere thanks for the thorough answer and the link that shows the syntax. Hoping to get this to work in the next few days.
-