Jump to content
Tuts 4 You

How to restart Chrome browser with flags?


LCF-AT

Recommended Posts

Hi guys,

short question. So when I run Brave / Chrome browser via shortcut from desktop then I do run it with some flags like "--incognito --no-proxy-server" etc. Now I wanna know whether its also doable to restart Chrome from Chrome with same flags I do use when starting Chrome via lnk? I just find the command "chrome://restart/" and make a bookmark to click on it and Chrome does restart itself but just in default mode. Thats why I'm asking whether its also doable with some flags or not?

greetz

Link to comment
Share on other sites

Can you rename chrome exe and use old name for bat file converted to exe to load new name chrome with switches? (You can use iexpress to convert which comes installed with windows )

I don't use chrome so can't test

Edited by NOP
  • Like 1
Link to comment
Share on other sites

Not sure what you mean NOP. In Chrome / Brave itself you can enter that command / URL I did post above...

chrome://restart/
brave://restart/

...and or save it as bookmark / press on it directly in browser to restart it which is good but I found no way yet how to do same with some flags you know. Main goal is it just to restart Chrome with flags XY via a bookmark icon press in browser itself not outside from anywhere (batch or something).

greetz

Link to comment
Share on other sites

If that restart command reloads from filename then it should work doing what I suggested. Similar to how a loader works

If it restarts via process then it wont

  • Like 1
Link to comment
Share on other sites

Ok one more time NOP. So you mean I should rename chrome.exe to chrome2.exe - then create a lnk / shortcut of chrome2 to run chrome via lnk file. Now I should create a batch file called chrome.exe.bat or just chrome.exe and putting the start command into which I used for the lnk right? I see I have already trouble with some syntax using "" in paths. Hhmmmm!

greetz

Link to comment
Share on other sites

1. Rename chrome.exe to chrome2.exe

2. create .bat file with something like this...

start "" "C:\PathToChrome\chrome2.exe" --incognito --no-proxy-server

3. Convert bat file to exe using THIS guide and save as chrome.exe in the chrome installation folder

Now any link "should" load chrome with your switches

  • Like 1
Link to comment
Share on other sites

Hi NOP,

thanks for the infos but it does not work with Brave / Chrome. I created a exe file with IExpress from my batch but somehow its not allowed to run Chrome2 filename only Chrome / Brave real name does work to run. Some filename check.

I also still don't know how it should work. Look..

chrome://restart/
brave://restart/

...those commands do a restart of browser and must call the executable filename itsel for this = "brave.exe". So if I now rename the brave.exe to brave2.exe = not starting = problem 1. What about the batch / exe file. I think this I should name to brave.exe so that this gets executed when I call the restart command in brave but from there the name brave.exe is already used by batch/exe filename and a other name like brave2.exe does not work to run. Know what I mean?

brave.exe = original exe file
rename to brave2.exe

Make batch file with command to start brave2.exe
Make exe file from batch file and name it brave.exe

Run brave2.exe = failed / runs & exits itself / namecheck

greetz

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...