Avoid Powerpoint(/Word) 2010 creating temporary files in working directory
When opening a temporary file, Powerpoint 2010 usually creates a temporary, hidden file called ~$filename.pptx
in the same directory. This is undesirable, since it can cause unnecessary activity with e.g. Dropbox. Furthermore, the "Documents" folder should not be used for temporary files -- we have the %TEMP%
folder for that.
So, is it possible to have Powerpoint create its temporary files in %TEMP%
instead? The following link suggests that it might not be possible: http://support.microsoft.com/kb/211632
Also, why does Microsoft not use the %TEMP%
folder?
The reason Office doesnt use the temp folder any more is due to the fact that Office documents are commonly shared and stored on network drives. If I was editing a Word doc off a network share right now and my hard drive died, I could move to another computer and pick up at, or close to, the point when the drive died. If the file was being edited locally, all the work I had done would have been lost.
It isn't possible nor desired for several reasons. While having a temp file will cause unnecessary syncs, that isn't the concern.
As the articles say, this is mainly due to speed(especially larger files) and more importantly, data integrity. What if there was an interruption while Office was writing to your original file?? While easily recoverable, it isn't a gamble I would take as a developer.
I wouldn't worry about the unnecessary activity. I lorem ipsum about 30 pages on my dropbox just now and I hit 6KB/s of network activity for about 5 seconds. . .
The page you are referring to says:
Word gains significant performance speed by placing the temporary file in the same directory as the saved file. If Word placed the temporary file elsewhere, it would have to use the MS-DOS COPY command to move the temporary file from the other directory to the saved location. By leaving the temporary file in the same directory as the saved document file, Word can use the MS-DOS MOVE command to quickly designate the temporary file as the saved document.*