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

0

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.

Maxximilian Alexander

Posted 2015-03-10T04:27:19.583

Reputation: 1

I'm sorry, I don't understand what the question is? You don't explain what is not working. Why is 1 more command an issue? – Dave – 2015-03-10T08:25:34.867

Essentially just searching for the command line to run a shortcut from a batch file. Thanks for any help! – Maxximilian Alexander – 2015-03-13T07:27:38.530

Answers

1

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

DavidPostill

Posted 2015-03-10T04:27:19.583

Reputation: 118 938

0

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

start "webpage name" "http://someurl.com/"

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

start "webpage name" "http://someurl.com/"

jptagman

Posted 2015-03-10T04:27:19.583

Reputation: 1

2How is this different than the answer by @DavidPostill? Can you elaborate? – Dave M – 2015-05-02T19:14:10.267