473,387 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 16433
* "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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.