Prevent .ds_store file creation on network volumes

I have been annoyed by the fact that OSX leaves .ds_store files in folders that you open. This is ok on the mac, but not so on the countless network volumes I open every day. Google helped me find a quick solution to get rid of the problem, by typing the following in terminal:

<code>defaults write com.apple.desktopservices DSDontWriteNetworkStores true</code>