Discussion:
windows server forgets file type mapping on restart
(too old to reply)
icccapital
2009-07-21 13:16:12 UTC
Permalink
I have a windows terminal server 2003, which has some software written in VB6
that uses the shellexecute command.

I was sure where to post this, but my problem is that when I restart the
server the shell execute command won't function when trying to open a tif.
Before restart it is set to be opened by "Windows Picture and Fax Viewer"
after restart when I look in windows explorer there is no icon associated
with tifs until I double click on one.

So there are several issues here, windows explorer does eventually figure
out to open tif's with the viewer, but shell exectue doesn't. After opening
in windows explorer shellexecute will work and the icons show up again.

That is a lot but I hope it makes sense and I hope someone can help or
redirect me to the correct discussion group. Thanks.
Dave Patrick
2009-07-22 03:22:48 UTC
Permalink
From the command line assoc .tif

then using ftype

(example)

----------------------------------------
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\administrator>assoc .tif
.tif=TIFImage.Document

C:\Users\administrator>ftype TIFImage.Document
TIFImage.Document=%SystemRoot%\System32\rundll32.exe "%ProgramFiles%\Windows
Photo Gallery\PhotoViewer.dll", ImageView_Fullscreen %1

C:\Users\administrator>
----------------------------------------


may reveal something.

Also check for the DWord 'NoFileAssociate' in registry.

http://support.microsoft.com/kb/257592
--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
Post by icccapital
I have a windows terminal server 2003, which has some software written in VB6
that uses the shellexecute command.
I was sure where to post this, but my problem is that when I restart the
server the shell execute command won't function when trying to open a tif.
Before restart it is set to be opened by "Windows Picture and Fax Viewer"
after restart when I look in windows explorer there is no icon associated
with tifs until I double click on one.
So there are several issues here, windows explorer does eventually figure
out to open tif's with the viewer, but shell exectue doesn't. After opening
in windows explorer shellexecute will work and the icons show up again.
That is a lot but I hope it makes sense and I hope someone can help or
redirect me to the correct discussion group. Thanks.
icccapital
2009-07-22 14:34:01 UTC
Permalink
Dave,

Thanks for the response, I am not sure if that did anything, as I figured
these commands were just to get information from the system, but I restarted
twice after looking at that and the server did not have any problems
recognizing the tifs. So thanks for the help.
Post by Dave Patrick
From the command line assoc .tif
then using ftype
(example)
----------------------------------------
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\administrator>assoc .tif
..tif=TIFImage.Document
C:\Users\administrator>ftype TIFImage.Document
TIFImage.Document=%SystemRoot%\System32\rundll32.exe "%ProgramFiles%\Windows
Photo Gallery\PhotoViewer.dll", ImageView_Fullscreen %1
C:\Users\administrator>
----------------------------------------
may reveal something.
Also check for the DWord 'NoFileAssociate' in registry.
http://support.microsoft.com/kb/257592
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
Post by icccapital
I have a windows terminal server 2003, which has some software written in VB6
that uses the shellexecute command.
I was sure where to post this, but my problem is that when I restart the
server the shell execute command won't function when trying to open a tif.
Before restart it is set to be opened by "Windows Picture and Fax Viewer"
after restart when I look in windows explorer there is no icon associated
with tifs until I double click on one.
So there are several issues here, windows explorer does eventually figure
out to open tif's with the viewer, but shell exectue doesn't. After opening
in windows explorer shellexecute will work and the icons show up again.
That is a lot but I hope it makes sense and I hope someone can help or
redirect me to the correct discussion group. Thanks.
Dave Patrick
2009-07-23 04:01:25 UTC
Permalink
Yes, they were queries only but glad to hear its sorted.
--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
Post by icccapital
Dave,
Thanks for the response, I am not sure if that did anything, as I figured
these commands were just to get information from the system, but I restarted
twice after looking at that and the server did not have any problems
recognizing the tifs. So thanks for the help.
Loading...