By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,887 Members | 1,148 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,887 IT Pros & Developers. It's quick & easy.

Process.Start(Windows Picture and Fax Viewer)?

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
* "Dean Slindee" <sl*****@mindspring.com> scripsit:
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" ;-).

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

P: n/a
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

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c0*************@ID-208219.news.uni-berlin.de...
* "Dean Slindee" <sl*****@mindspring.com> scripsit:
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" ;-).

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #3

P: n/a
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_Fullscr een 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_Fullscr een 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.

Nov 20 '05 #4

P: n/a
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_Fullscr een " & strPath) '0-1
second to load

Thanks again,
Dean Slindee

"Peter Huang" <v-******@online.microsoft.com> wrote in message
news:J5**************@cpmsftngxa07.phx.gbl...
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_Fullscr een 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_Fullscr een 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.

Nov 20 '05 #5

P: n/a
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.

Nov 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.