Write control/desktop files to temp folder