I'm trying to make Chromium portable, and according to this page I have to add --user-data-dir=<dir> as a command line-switch to chromium in order to use a custom directory to save personal data.

This is what I did:

  1. Downloaded the latest Windows chromium build (http://build.chromium.org/f/chromium/snapshots/Win_Webkit_Latest/4294/chrome-win32.zip)
  2. Extracted to a directory and within the directory I created a new one named userdata.
  3. cd'd to the right directory and executed this command: chrome.exe --user-data-dir=userdata.

However, I noticed no files were made in userdata and after checking I see that the userdata is saved in C:\Users\<username>\AppData\Local\Chromium\User Data\Default (the default) instead.

What did I do wrong?


Windows 7 Home Premium 64 bit

link|improve this question

70% accept rate
feedback

1 Answer

up vote 1 down vote accepted

You need to give the complete path to your data directory.

For instance, if you've extracted it to C:\Chrome, and created a folder called userdata inside that, you need to run

chrome.exe --user-data-dir="C:\Chrome\userdata"

Its always good to use quotes in windows arguments.

Also you can try running

chrome.exe --user-data-dir=".\userdata\"

Here . refers to the current directory(c:\Chrome\) in this case

(It might work, but I don't have a Windows sytem right now to test it)

link|improve this answer
I haven't tested this yet, but I'll accept it. – nightcracker Oct 20 '11 at 12:21
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.