You need to be logged in to post in the forums. If you do not have an account, please sign up first.
How to launch opera 12 from a bat file?
Could someone please help me with this? I have a couple of bat files from my Opera 11.x installation but they don't work well when I update them for the new Opera 12.When called from a bat, opera.exe opens without previous settings and in the default skin. I don't understand why this happens. I don't understand how the plugin wrapper is launched by opera and what it does exactly.
Opera 12 build 1467 on Windows XP SP2 Pro • AMD64 3000 1Gb RAM
Originally posted by kkad:
Can you post content of it?I have a couple of bat files from my Opera 11.x installation but they don't work well when I update them for the new Opera 12.
Originally posted by kkad:
Opera launches plugins like flash in separate process. If flash crashes it won't crash Opera.I don't understand how the plugin wrapper is launched by opera and what it does exactly.
Right! Here is the bat, with updated paths for Opera 12, it's to save previous session and open opera without tabs:
PS: So if the wrapper only relates to plugins, how to explain that when launched from bat file, opera.exe opens in the default skin and without customization?
@echo off
set exeName="opera.exe"
set found=
for /f "tokens=*" %%a in ('tasklist ^| findstr /i "%exeName%"') do set found=Y
if "%found%"=="Y" goto :IFTRUE
:IFFALSE
echo %exeName% is started
copy "C:\Documents and Settings\myname\Application Data\Opera\Opera1200\sessions\autosave.win" "C:\Documents and Settings\myname\Application Data\Opera\Opera1200\sessions\autosession.win"
goto :ENDIF
:IFTRUE
echo %exeName% is already running
:ENDIF
start /D "C:\Program Files\Opera1200" opera.exe
PS: So if the wrapper only relates to plugins, how to explain that when launched from bat file, opera.exe opens in the default skin and without customization?
Opera 12 build 1467 on Windows XP SP2 Pro • AMD64 3000 1Gb RAM
So I solved this myself by reinstalling Opera in USB (stand-alone) mode. That way the profile and all the stuff is in one place! After updating the system envronment path (you know, that thing) to look for opera.exe in the right place everything is working fine again.
Opera 12 build 1467 on Windows XP SP2 Pro • AMD64 3000 1Gb RAM