<p>Run bitcoin with the parameter <code>-datadir=C:\New\Dir</code></p>

<p>E.g. create a shortcut and change "target" to <code>"C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe" -datadir=C:\BitcoinData</code></p>

CC BY-SA 3.0
2013-04-13T08:54:55.013Z
where do i go to add the parameter?
Calibrumm
CC BY-SA 3.0
2013-04-13T08:59:00.580Z
ok i created a shortcut for bitcoin-qt and i added -datadir=C:\BitcoinData to the end but it just says C:\BitcoinData doesnt exist
Calibrumm
CC BY-SA 3.0
2013-04-13T12:01:52.797Z
issue solved, i changed my Username via another admin account and regedit to change the log in defaults
Calibrumm
CC BY-SA 3.0
2013-07-14T14:40:38.790Z
`-datadirC:\BitcoinData` as strange as it is, do not put no nothing between datadir and your dir.....
n611x007
CC BY-SA 3.0
2013-04-13T08:51:33.887Z
2013-04-13T08:51:33.887Z
Nicolai
<p>I have everything set up normally. My only issue is that my data directory is in <code>C:\Users\User Name\AppData\Roaming\Bitcoin</code>.</p>

<p>Normaly this is what you would want, but, if you noticed, my username has a space in it (obviously I changed it for privacy) so when I try to designate my data directory in the miner program it says the directory does not exist because the space in my username causes the directory link to break ( <code>C:\Users\User</code> ) instead of the full link...</p>

<p>Is there a way I can change where <a href="https://en.bitcoin.it/wiki/Bitcoin-Qt" rel="nofollow">Bitcoin-Qt</a> stores its data by default?</p>

<p>And no, a re-directory won't work, because it can't find the location in the first place.</p>

CC BY-SA 3.0
2013-11-10T11:33:09.053Z
I was having disk space problem, so I installed it in E:\
I created a separate directory for storing data first.
Then, I created a shortcut to bitcoin=qt.exe on my desktop and added the parameter in the target as described above. Now it's working fine, thanks.
Syed Priom
CC BY-SA 3.0
2014-08-01T12:27:10.223Z
Asking about how to change the default storage location has been posted many, many times. The future canonical question is probably *[Bitcoin-Qt setup: Change block-chain file location, settings? documentation?](http://bitcoin.stackexchange.com/questions/9259)*. Possible duplicate of *[Bitcoin-Qt setup: Change block-chain file location, settings? documentation?](http://bitcoin.stackexchange.com/questions/9259)*.
Peter Mortensen
CC BY-SA 3.0
2014-09-13T10:43:00.120Z
possible duplicate of [Bitcoin-Qt setup: Change block-chain file location, settings? documentation?](http://bitcoin.stackexchange.com/questions/9259/bitcoin-qt-setup-change-block-chain-file-location-settings-documentation)
Peter Mortensen
<bitcoin-core>
Data directory issue
Calibrumm
# Data directory issue

(Asked by: username_0 on 2013-04-13)

I have everything set up normally. My only issue is that my data directory is in `C:\Users\User Name\AppData\Roaming\Bitcoin`.

Normaly this is what you would want, but, if you noticed, my username has a space in it (obviously I changed it for privacy) so when I try to designate my data directory in the miner program it says the directory does not exist because the space in my username causes the directory link to break ( `C:\Users\User` ) instead of the full link...

Is there a way I can change where [Bitcoin-Qt](https://en.bitcoin.it/wiki/Bitcoin-Qt) stores its data by default?

And no, a re-directory won't work, because it can't find the location in the first place.

**Tags:** bitcoin-core

> **Comments:**
> **username_1**: I was having disk space problem, so I installed it in E:\ I created a separate directory for storing data first. Then, I created a shortcut to bitcoin=qt.exe on my desktop and added the parameter in the target as described above. Now it's working fine, thanks.  
> **username_2**: Asking about how to change the default storage location has been posted many, many times. The future canonical question is probably *[Bitcoin-Qt setup: Change block-chain file location, settings? documentation?](http://bitcoin.stackexchange.com/questions/9259)*. Possible duplicate of *[Bitcoin-Qt setup: Change block-chain file location, settings? documentation?](http://bitcoin.stackexchange.com/questions/9259)*.  
> **username_2**: possible duplicate of [Bitcoin-Qt setup: Change block-chain file location, settings? documentation?](http://bitcoin.stackexchange.com/questions/9259/bitcoin-qt-setup-change-block-chain-file-location-settings-documentation)  

---

## 1 answers

### Answer by username_3 on 2013-04-13. Score: 3 | Accepted answer

Run bitcoin with the parameter `-datadir=C:\New\Dir`

E.g. create a shortcut and change "target" to `"C:\Program Files (x86)\Bitcoin\bitcoin-qt.exe" -datadir=C:\BitcoinData`

> **Comments:**
> **username_0**: where do i go to add the parameter?  
> **username_0**: ok i created a shortcut for bitcoin-qt and i added -datadir=C:\BitcoinData to the end but it just says C:\BitcoinData doesnt exist  
> **username_0**: issue solved, i changed my Username via another admin account and regedit to change the log in defaults  
> **username_4**: `-datadirC:\BitcoinData` as strange as it is, do not put no nothing between datadir and your dir.....  

---

