At home, my computer is often used by my sister or father, which can lead to nervous moments when they load up Google Chrome. (I spend my free time with National Geographic.) To fix the problem, I decided to create a second Chrome profile that only I knew about and it would be loaded through Windows Command Prompt or PowerShell for ease of access. Small note: this is all done under Windows 7. If you have XP or below, the directions are quite different and can be found via a quick search on Bing.
Creating the Profile
Those of you who regularly use Firefox are probably familiar with it's built in profile feature. In Chrome, this feature can be mimicked manually.
Step 1:
Locate your Default Chrome profile. This is where your normal browsing information is stored. In Windows 7, it can be found here:
C:\Users\YOURNAME\AppData\Google\Chrome\User Data\
Step 2:
Copy and Paste "Default" back into "User Data." This will be your new profile so you can give the folder its own name. Before you complete this step, you may want to clear your history, as this step will export cookies, URLs, etc. and it may take a while.
Step 3:
Now open up command prompt or PowerShell and change directory to Chrome's Application folder. Then run this command:
chrome.exe -user-data-dir="..\User Data\YOURPROFILE" -first-run
This step will have your profile run as if it was just installed on your computer. This way, adjusting the settings, setting up sync, and adding themes or extensions will be much simpler.
Step 4:
Now create a shortcut to "chrome.exe" under the Application folder. This shortcut can be placed anywhere. Right click on it and hit "Properties." Edit the "Target" field to look like this:
C:\Users\YOURNAME\AppData\Local\Google\Chrome\Application\chrome.exe -user-data-dir="..\User Data\YOURPROFILE"
This makes it so that anytime the shortcut is hit, your Chrome profile loads.
Step 5:
Now the profile is ready. These next steps cover running your profile from cmd or PS.
Running Your Profile From cmd or PS
Running this from the shell is quite simple, and I have it this way so nobody can click my profile from the Start Menu or Desktop.
Step 1:
Add the shortcut to your profile in your custom path. If you plan on running this from cmd, you should probably have a path set up for running batch or ps scripts. If you don't know how to do this, there are many tutorials available online.
Step 2:
Setting the actual script is only a few lines. Simply copy and paste this into Notepad and save it as "chrome.bat." Then when you want to run chrome, you can just type in "chrome" and any arguments you need.
@echo off
if(%1)==(-i) goto i
if not(%1)==() goto normal
goto end
:i
start C:\Users\YOURNAME\AppData\Local\Google\Chrome\Application\chrome.exe -incognito
goto end
:normal
start PROFILENAME.exe.lnk
goto end
:end
:: Sahil Amin // sahilamin.com
To run normally, just type in Chrome, and your profile loads. To start Chrome in Incognito, type in "chrome -i" and the default profile incognito loads. Be sure to edit the paths and file names!