Archived from groups: microsoft.public.windowsxp.perform_maintain,microsoft.public.windowsxp.setup_deployment (
More info?)
Ken,
My workaround is to place a shortcut to my VBScript in the SendTo folder.
This script then invokes the shimgvw.dll,ImageView_Fullscreen and passes the
argument (the name of the file that's being sent to). This script works fine
(and launches WPFV) in my Windows XP system, not sure about Windows 2000.
===========================================================
'Ramesh Srinivasan
'Adds Windows Picture Viewer to SendTo
Set wshshell = CreateObject("Wscript.Shell")
ViewerPath = "rundll32.exe " & _
WshShell.ExpandEnvironmentStrings("%systemroot%")
ViewerPath = ViewerPath & _
"\system32\shimgvw.dll,ImageView_Fullscreen "
Dim Validator
Validator = "Validate"
Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
InspExt = lcase(right(objArgs(I),4))
Select Case InspExt
Case ".bmp"
Case ".jpg"
Case ".gif"
Case "jpeg"
Case ".tif"
Case "tiff"
Case ".png"
Case ".wmf"
Case else Validator = "NoValidate"
end select
if Validator = "Validate" then
ViewImg = ViewerPath & objArgs(I)
WshShell.Run ViewImg, 1,True
else
msgbox "Unsupported file type for WPFV"
end if
Next
======================================
Copy the above contents to a Notepad, and save as "wpfv.vbs". Save this to
your Windows folder, and place a shortcut of this file in the Send To
folder. If the DLL is supported (i've not tested it in Win2000), then it
should display the picture.
--
Ramesh, Windows XP MVP
http://windowsxp.mvps.org
"kjk" <kjk@usa.com> wrote in message
news
inmf1lcq51c474uvagqka3mpiinh7884o@4ax.com...
> Yes, it does, but the properties page doesn't say Windows Picture and
> Fax Viewer, it says something else. She told me what, but I don't
> remember. Assuming that we don't want to mess with her system files,
> what would your workaround be? Thanks.
>
> Ken
>
> ----------------------------------
>
> On Thu, 11 Aug 2005 19:02:55 +0530, "Ramesh, MS-MVP"
> <ramesh@XOX.mvps.org> wrote:
>
>>Ken,
>>
>>I don't have a Windows 2000 system here to test with. BTW, are you sure
>>that
>>Windows 2000 comes with a shimgvw.dll module?
>
> --------------------------------
>
> "kjk" <kjk@usa.com> wrote in message
> news:0uhmf1tscsm679n29udpbcvd663b3gk5ec@4ax.com...
>> Ramesh,
>>
>> My wife has a Win2000 system at work. It has a shimgvw.dll file, but
>> her file doesn't seem to contain WPFV. WPFV doesn't appear in Open
>> With and her shimgvw.dll file properties don't indicate it.
>>
>> She really likes WPFV as a way of viewing pictures (only during lunch
>> hour, of course), so I'm trying to find a way of adding it to her
>> system. At first, I considered just replacing her shimgvw.dll file
>> with my WinXP shimgvw.dll file, but I decided that I don't want to
>> take the chance of screwing up her office system, and it might not
>> show up in her Open With dialog anyway. That's when I started moving
>> in the direction of trying to add it to her Send To folder. I could
>> place my WinXP file in a separate location on her system and use that
>> file path in the shortcut.
>>
>> Do you know if just replacing her shimgvw.dll would safely work?
>> What would your workaround be?
>>
>> Thanks,
>>
>> Ken
>>
>> ----------------------------
>>
>> On Thu, 11 Aug 2005 09:36:17 +0530, "Ramesh, MS-MVP"
>> <ramesh@XOX.mvps.org> wrote:
>>
>>>Ken,
>>>
>>>I think there is a workaround for this. But, why're you so particular
>>>about adding WPFV to the Send To?
>>
>