1. File association is as it should be - it opens the gif editor. The
problem is when the gif editor (Photo Editor, Paint, etc..) tries to open
that file, it fails because windows suddenly denies access. I can request it
from within the program, and the previewer will display it.
Here's what I've got in file association (a lot of this is defaults)
[HKEY_CLASSES_ROOT\.gif]
"PerceivedType"="image"
@="giffile"
"Content Type"="image/gif"
[HKEY_CLASSES_ROOT\.gif\OpenWithProgids]
"giffile"=hex(0):
[HKEY_CLASSES_ROOT\.gif\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT\giffile]
@="GIF Image"
"BrowserFlags"=dword:00000008
"EditFlags"=dword:00010000
"FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\
00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,\
32,00,5c,00,73,00,68,00,69,00,6d,00,67,00,76,00,77,00,2e,00,64,00,6c,00,6c,\
00,2c,00,2d,00,33,00,30,00,32,00,00,00
"ImageOptionFlags"=dword:00000003
[HKEY_CLASSES_ROOT\giffile\CLSID]
@="{25336920-03F9-11cf-8FD0-00AA00686F13}"
[HKEY_CLASSES_ROOT\giffile\DefaultIcon]
@="shimgvw.dll,2"
[HKEY_CLASSES_ROOT\giffile\shell]
@="Edit"
[HKEY_CLASSES_ROOT\giffile\shell\Edit]
[HKEY_CLASSES_ROOT\giffile\shell\Edit\command]
@="\"D:\\Program Files\\photoed\\PhotoEd.exe\" %1"
[HKEY_CLASSES_ROOT\giffile\shell\open]
@="Animate"
[HKEY_CLASSES_ROOT\giffile\shell\open\command]
@="\"D:\\Program Files\\msgif\\GIFAnimator.exe\" \"%1\""
[HKEY_CLASSES_ROOT\giffile\shell\open\ddeexec]
[HKEY_CLASSES_ROOT\giffile\shell\open\ddeexec\Application]
@="shimgvw"
[HKEY_CLASSES_ROOT\giffile\shell\open\ddeexec\Topic]
@="System"
[HKEY_CLASSES_ROOT\giffile\shell\Paint]
[HKEY_CLASSES_ROOT\giffile\shell\Paint\command]
@="\"%SystemRoot%\\System32\\mspaint.exe\" \"%1\""
[HKEY_CLASSES_ROOT\giffile\shell\printto]
[HKEY_CLASSES_ROOT\giffile\shell\printto\command]
@="rundll32.exe C:\\WINDOWS\\system32\\shimgvw.dll,ImageView_PrintTo /pt
\"%1\" \"%2\" \"%3\" \"%4\""
2. Ok, good to know, but that's not the problem.
1. A .gif file should be accessible. Check the files association for the
.gif extension under the "Files Types" tab of "Folder Options" found in
"Control Panel".
2. Yes, there's a set of filenames that are reserved in Windows:
"Do not use the following reserved device names for the name of a file:
CON,
PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1,
LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid these names
followed by an extension, for example, NUL.tx7.
Windows NT: CLOCK$ is also a reserved device name."
[Naming a File - MSDN]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/naming_a_file.asp