Re: Probelm with Process and shortcut
- From: José Manuel Agüero <jmaguero_vodafone.es>
- Date: Tue, 31 May 2005 19:15:17 +0200
Hello,
It works fine on my system. Have you tried it with different links or documents other than Acrobat Reader?
Regards.
"sebseb" <sebseb@xxxxxxxxxxxxxxxxxxxxxxxxx> escribió en el mensaje news:3FBFF7A7-B9DA-4272-8C48-7262D6ACAE75@xxxxxxxxxxxxxxxx
| Thank you for answering, but the result is same... still not work, and still
| the same exception with the same message
|
| The French version of this message could be a help, maybe, since it's bit
| different from the English message, it says : "Aucune application n'est
| associée au fichier spécifié pour cette opération" which means "There is no
| application associated to this file for this operation"
|
| The English equivalent was : "The specified executable is not a valid Win32
| application"
|
| I still need help, my whole project will be affected if I can't resolve it,
| I can bypass by changing strategy, but it will but much much less useful for
| end-users :S
|
|
| "José Manuel Agüero" wrote:
|
| > Hello sebseb,
| >
| > Try the following:
| >
| > Process p;
| > p.StartInfo.FileName = "path\\of\\my\\shortcut\\file.lnk";
| > p.StartInfo.Verb="open";
| > p.Start();
| >
| >
| > Regards.
| >
| >
| > "sebseb" <sebseb@xxxxxxxxxxxxxxxxxxxxxxxxx> escribió en el mensaje news:ABD158B7-AF8A-4368-AC6A-392A3AEC3D06@xxxxxxxxxxxxxxxx
| > | Hello
| > |
| > | I directly go to the problem, I create a Process, I set the Filename to the
| > | full path and filename of a shortcut file (.lnk) and then I start my process,
| > | like this :
| > |
| > | Process p;
| > | p.StartInfo.FileName = "path\\of\\my\\shortcut\\file.lnk";
| > | p.Start();
| > |
| > | My problem is that I always get a Win32Exception, with this message :
| > | "The specified executable is not a valid Win32 application"
| > |
| > | My shortcut is valid, it links to a PDF file and when I double-click on my
| > | shortcut, I get my PDF document open in Acrobat, properly
| > |
| > | Thank you in advance for any help
.
- References:
- Probelm with Process and shortcut
- From: sebseb
- Re: Probelm with Process and shortcut
- From: José Manuel Agüero
- Re: Probelm with Process and shortcut
- From: sebseb
- Probelm with Process and shortcut
- Prev by Date: Determining from a service if a user is logged on
- Next by Date: Re: deployment of winform control for use in webpage
- Previous by thread: Re: Probelm with Process and shortcut
- Next by thread: .NET CLR 1.0.3705 difference cause MSIE downloaded problems?
- Index(es):
Relevant Pages
|