Start an internal chrome page using a Windows batch file

I am trying to open an internal chrome page from a Windows Batch file, the following works for an external site:

@echo off
start chrome 

However the following only opens an empty Chrome tab:

@echo off
start chrome "chrome://bookmarks/"

The following also does not work:

@echo off
start chrome "chrome://settings/"

I've tried researching this issue and can't find a solution anywhere online.

4

2 Answers

Refer to this bat file start open chrome chrome://downloads/ Not Possible !


But here is a little hack for this but in vbscript using SendKeys


Set WshShell = CreateObject("WScript.Shell")
WshShell.run "chrome.exe",1,False
WScript.Sleep 7000
WshShell.SendKeys("chrome://settings")
WshShell.SendKeys("{enter}")

Or in Powershell too like this example :

$shell = New-Object -ComObject WScript.Shell
$shell.Run("chrome",1,"False")
$id = Get-Process -Name chrome | Select-Object -ExpandProperty Id -First 1
Start-Sleep -s 7
$shell.AppActivate($id)
$shell.SendKeys("chrome://settings/")
$shell.SendKeys("{enter}")
1

When using the start command the first set of quotes are the console window title.

Either don't use quotes (your parameter has no spaces so quotes aren't required) or specify the window title.

start "Title" chrome ""

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like