How to make batch file to open specific Profiles in Google Chrome
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.
22 Answers
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
- An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.
- start - Start a program, command or batch script (opens in a new window).
start "Chrome" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 2"
start "webpage name" ""
start "Chrome" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 3"
start "webpage name" ""
1