How do I specify in which directory Bitcoin blocks and other data should be stored? I am on Windows and installed the Bitcoin wallet. The block folder seems to grow bigger everyday and is stored on my C drive in the roaming directory. I would like to set this to some other folder on another drive, which has more place. How would I go about doing this?
I believe you can specify this directory using the datadir configuration in bitcoin.conf.

-datadir=&lt;dir&gt;         Specify data directory


See Running Bitcoin.