473,407 Members | 2,546 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,407 software developers and data experts.

System.Diagnostics.Process.Start.....


I'm having problems with System.Diag here. When I double click the item (on
my desktop), it launches in Windows Fax and Picture Viewer, but when I try
to launch it from my VB program, I get the following exception:

"A first chance exception of type 'System.ComponentModel.Win32Exception'
occurred in system.dll

Additional information: No application is associated with the specified file
for this operation"
I'm writing this:

System.Diagnostics.Process.Start("C:\Documents and
Settings\R.Tucker\Desktop\camera.jpg")

Some items do launch ok, but for some reason .JPG files don't. Does
explorer look for this kind of thing explicitly and display it with the fax
and picture viewer if a default viewer is not registered?

Thanks for any answers.


Nov 20 '05 #1
2 6491
Open up an explorer window,

Go to Tools / Folder Options

Click on the FileTypes tab, and see if JPG is associated with anything, and
then check the parameters associated with it.

-CJ

"Robin Tucker" <id*************************@reallyidont.com> wrote in
message news:c4*******************@news.demon.co.uk...

I'm having problems with System.Diag here. When I double click the item (on my desktop), it launches in Windows Fax and Picture Viewer, but when I try
to launch it from my VB program, I get the following exception:

"A first chance exception of type 'System.ComponentModel.Win32Exception'
occurred in system.dll

Additional information: No application is associated with the specified file for this operation"
I'm writing this:

System.Diagnostics.Process.Start("C:\Documents and
Settings\R.Tucker\Desktop\camera.jpg")

Some items do launch ok, but for some reason .JPG files don't. Does
explorer look for this kind of thing explicitly and display it with the fax and picture viewer if a default viewer is not registered?

Thanks for any answers.


Nov 20 '05 #2
Open up an explorer window,

Go to Tools / Folder Options

Click on the FileTypes tab, and see if JPG is associated with anything, and
then check the parameters associated with it.

-CJ

"Robin Tucker" <id*************************@reallyidont.com> wrote in
message news:c4*******************@news.demon.co.uk...

I'm having problems with System.Diag here. When I double click the item (on my desktop), it launches in Windows Fax and Picture Viewer, but when I try
to launch it from my VB program, I get the following exception:

"A first chance exception of type 'System.ComponentModel.Win32Exception'
occurred in system.dll

Additional information: No application is associated with the specified file for this operation"
I'm writing this:

System.Diagnostics.Process.Start("C:\Documents and
Settings\R.Tucker\Desktop\camera.jpg")

Some items do launch ok, but for some reason .JPG files don't. Does
explorer look for this kind of thing explicitly and display it with the fax and picture viewer if a default viewer is not registered?

Thanks for any answers.


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Daniel Reber | last post by:
I am trying to start a process from a windows service but when the process starts the command window that the process runs in never shows. Is this because I am calling it from a windows service? ...
0
by: marccruz | last post by:
Given an instance of System.Diagnostics.Process, how can I get the parent process o Given an instance of System.Diagnostics.Process, how can I get the child processes For example, I start a...
1
by: solex | last post by:
Hello All, Hopefully someone has run into this error. I have written a class(source below) that launches a thread to monitor the StandardOutput of a System.Diagnostics.Process, in particular I...
2
by: andreas | last post by:
hi, In windows xp in the start launch menu when i put notepad "c:\test.txt" i get notepad with test.txt in it. in vb.net when i state system.diagnostics.process.start("notepad.exe" i get...
11
by: Nurit N | last post by:
This is the third newsgroup that I'm posting my problem. I'm sorry for the multiple posts but the matter becoming urgent. I hope this is the right place for it... I have created a very...
2
by: Daniel | last post by:
System.Diagnostics.Process.Start fails on windows server 2003 the process returns process.ExitCode == 0 but executing any process with System.Diagnostics.Process.Start on windows xp works fine....
0
by: Daniel | last post by:
C# windows service freezes on System.Diagnostics.Process.Start(info) When I launch PSCP from a C# windows service and launch pscp 0.53 there are no issues. but when I use C# windows service to...
0
by: Colin Williams | last post by:
I am using the code below to map network drive and then fire up an app in a sub dir of that drive. However when using the file open dialog from that app, drive K: appears just as Network drive K:...
2
by: test3 | last post by:
Hello folks, I'm using System.Diagnostics.Process to start a thirdparty program (that works perfectly when started via command line). I'm using Process.StandardOutput to get the output of the...
6
by: kimiraikkonen | last post by:
Hello, I want to ask this: If i do: System.Diagnostics.Process.Start("c:\lame", "--preset standard c:\blabla.wav c:\blabla.mp3") it works. But i don't want this. I want my 2 textboxes must...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.