472,951 Members | 2,234 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,951 software developers and data experts.

Process.Start(Windows Picture and Fax Viewer)?

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
5 16403
* "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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Pippo | last post by:
My environment... VS .NET 2003 One solution 3 Project (1 Windows service - 1 Windows application - 1 Installshield basic msi) I know that there's not possible create a service with gui. In...
0
by: ucasesoftware | last post by:
Hello, in my Windows service installer i want to start it in AfterInstall event... i don't have success to do it, and i don't find any topics who have the solution Can someone help me ?
7
by: shai | last post by:
I am working at .net 1.1, writing in c#. I have windows service with a COM object. Every unexpected time The COM object throw an error that make my service get stuck (do not respond). I can catch...
2
by: softwaresudhir | last post by:
Hello, How to create/install & start windows service? Thanks sharwan
0
by: artsohc | last post by:
Hey Everyone, this is my first time posting so go easy on me. I am trying to hook up music-on-hold at the office I work at. I got all the music loaded and I got Windows Media Player working while...
2
by: Mika M | last post by:
I'm doing Windows Service programming using C# 2005. My solution contains Windows Service project. Then I added Setup and Deployment project into the same solution. Both service- and Setup and...
3
by: Tim Kelley | last post by:
Is there a way (command line switch) to open Windows Explorer and set the view to Thumbnails? Thanks, Tim
4
by: nivedita | last post by:
I got below function from http://techinterviewquestion.blogspot.com/ blog. it is working fine. i used public void StartService(string ServiceName) { ServiceController sc = new...
3
by: DaveL | last post by:
Hi All I have a windows application that needs to run 24/7 in the SysTray How to Start this on Start up When ever the machine is re-started etc I also need to run as a Different User that has...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.