If your dokuwiki is not a local wiki, you might want to read the following section:
http://www.mturner.org/fckgLite/doku.php?id=media#unix-type_systems
It applies both to fckgLite and to ckgedit, and the secure .htaccess file can be used in the media directory on a windows installation.