Go to C:\Program Files\Praim\ThinMan Gateway\conf
Edit the file gateway.properties.
Modify the entry gateway.datadir, inserting the desired complete path (use the character \ to scape special characters) e.g: D\:\\archive.
Restart the ThinMan Gateway service.