Windows – How to make batch file to open specific Profiles in Google Chrome

batch filegoogle-chromeuser-profileswindows

I have .BAT batch files to open a set of programs, web pages and explorer windows. With sufficient Googling I've still come up short as how to execute the profile target

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 1"

by batch. A workaround would be to run that link by batch, but I would feel more comfortable knowing the computer has one less step to achieve the same goal.

I feel I'm close to an easy fix here, but don't have the batch command line knowledge resources nor terminology to search adequately I'm afraid.

Best Answer

How can I run Chrome with a specified profile in a batch file?

Use start:

start "Chrome" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 1"

Syntax

START "title" [/D path] [options] "command" [parameters]

Source Start a program, command or batch script (opens in a new window.)


Further Reading