Process.Start(Windows Picture and Fax Viewer)?

  • Thread starter Thread starter Dean Slindee
  • Start date Start date
D

Dean Slindee

I have looked everywhere I can think of for the .exe name of the Windows
Picture and Fax Viewer. Anybody know what it's named?

Thanks,
Dean Slindee
 
* "Dean Slindee said:
I have looked everywhere I can think of for the .exe name of the Windows
Picture and Fax Viewer. Anybody know what it's named?

It's "EXPLORER.EXE" ;-).
 
Right you are, Herfried.

Any idea why the first Process.Start below loads the image instantly, but
the second Process.Start takes about 4-5 seconds, and/or what to do about
it? No instances of Explorer.exe running in either case.
'Process.Start(strPath & ".bmp")

Process.Start("C:\Windows\Explorer.exe", strPath & ".bmp")

Thanks,

Dean Slindee
 
Hi Dean,

Thanks for posting in the community.

First of all, I would like to confirm my understanding of your issue.
From your description, I understand that you wants to you want to call
Windows Picture and Fax Viewer to display some bmp files. Also when you
call the explorer to show the pictures, and the second time you run the
explorer process will be somewhat slow.
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.

I have tested the code on my machine. (WinXP Pro + SP1, VS.NET 2003)
Also I think if you wants to use the Windows Picture and Fax Viewer, you
may try the shimgvw.dll, here is some code for your reference.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
'Process.Start("c:\windows\explorer.exe", "C:\Bluehills.jpg")
Process.Start("c:\windows\system32\rundll32.exe",
"C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen c:\Bluehills.jpg")
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
'Process.Start("c:\windows\explorer.exe", "C:\drums.jpg")
Process.Start("c:\windows\system32\rundll32.exe",
"C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen c:\drums.jpg")
End Sub

Please Apply My Suggestion Above And Let Me Know If It Helps Resolve Your
Problem.


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Peter,
Thanks, the "long" Process.Start statement is what I need. I want to launch
Windows Picture and Fax Viewer, no matter what the user has set up in the
file associations between, say .bmp files and his preferred .bmp image
viewer.

During the testing, I came across a very noticeable difference in the time
it took to launch Windows Picture and Fax Viewer and paint the image. Here
are my results, and they are consistent. All assume that WPFV is associated
with .jpg files. Note that scenario 2 of 3 takes 4-5 seconds, while
supplying less or more parameters takes 0-1 seconds. My immediate need is
solved by scenario 3 of 3, so it's only an "academic" question on
performance now. Try the three scenarios on you PC, see if you get the same
results.
strPath = "C:\Bluehills.jpg"

'Process.Start(strPath) '0-1 second to load

'Process.Start("C:\Windows\Explorer.exe", strPath) '4-5 seconds to load
(???)

Process.Start("C:\windows\system32\rundll32.exe",
"C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen " & strPath) '0-1
second to load

Thanks again,
Dean Slindee
 
Hi Dean,

Comments in lines.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "Dean Slindee" <[email protected]>
References: <#[email protected]>
<[email protected]>
Subject: Re: Process.Start(Windows Picture and Fax Viewer)?
Date: Mon, 9 Feb 2004 18:06:03 -0600
Lines: 75
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.0
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Message-ID: <[email protected]>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: 0-1pool36-200.nas14.milwaukee1.wi.us.da.qwest.net 63.156.36.200
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGP09.phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:180015
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

Peter,
Thanks, the "long" Process.Start statement is what I need. I want to launch
Windows Picture and Fax Viewer, no matter what the user has set up in the
file associations between, say .bmp files and his preferred .bmp image
viewer.

During the testing, I came across a very noticeable difference in the time
it took to launch Windows Picture and Fax Viewer and paint the image. Here
are my results, and they are consistent. All assume that WPFV is associated
with .jpg files. Note that scenario 2 of 3 takes 4-5 seconds, while
supplying less or more parameters takes 0-1 seconds. My immediate need is
solved by scenario 3 of 3, so it's only an "academic" question on
performance now. Try the three scenarios on you PC, see if you get the same
results.
strPath = "C:\Bluehills.jpg"

'Process.Start(strPath) '0-1 second to load
Yes, I found Windows Picture and Fax Viewer will open the file in less than
1 second.(the process is rundll32.exe)

'Process.Start("C:\Windows\Explorer.exe", strPath) '4-5 seconds to load
(???)
The senario will open the file with Explorer(the process is Explorer.exe),
the time will be somewhat longer than the other two senarios about 1-2
seconds.

Process.Start("C:\windows\system32\rundll32.exe",
"C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscreen " & strPath) '0-1
second to load
Same with senario 1.
 
Hi Dean,

Thanks for posting in the community.

Did my answer help you, if you have any concern on this issue, please post
here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top