Click here to Skip to main content
15,916,835 members
Home / Discussions / C#
   

C#

 
GeneralRe: Windows Service Syslog for UDP port 514 Pin
Dimitris Tselios12-Oct-08 2:11
Dimitris Tselios12-Oct-08 2:11 
QuestionRe: Windows Service Syslog for UDP port 514 Pin
Mark Salsbery10-Oct-08 5:56
Mark Salsbery10-Oct-08 5:56 
QuestionShell Programming - Loading a file selected on list view component Pin
Gianpaolo Barci10-Oct-08 4:34
Gianpaolo Barci10-Oct-08 4:34 
AnswerRe: Shell Programming - Loading a file selected on list view component Pin
DaveyM6910-Oct-08 4:59
professionalDaveyM6910-Oct-08 4:59 
GeneralRe: Shell Programming - Loading a file selected on list view component [modified] Pin
Gianpaolo Barci10-Oct-08 5:07
Gianpaolo Barci10-Oct-08 5:07 
GeneralRe: Shell Programming - Loading a file selected on list view component Pin
Dave Kreskowiak10-Oct-08 5:22
mveDave Kreskowiak10-Oct-08 5:22 
AnswerRe: Shell Programming - MY CODE! Pin
Gianpaolo Barci10-Oct-08 6:12
Gianpaolo Barci10-Oct-08 6:12 
GeneralRe: Shell Programming - MY CODE! Pin
Dave Kreskowiak10-Oct-08 6:49
mveDave Kreskowiak10-Oct-08 6:49 
NOT THE WHILE BLOODY THING!! Just the part where you're having the problem launching files!

Thankfully, that part is at the end of the file. Noone is going to go looking through all that code for a small part...

Your executeFile method just needs to do something like:
Process.Start(filepath)

Because the Shell interpret spaces as a delimiter, it's a good idea to enclose filepaths in double quotes.
Process.Start(String.Format("\"{0}\"", filepath))



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Shell Programming - MY CODE! Pin
Gianpaolo Barci10-Oct-08 7:00
Gianpaolo Barci10-Oct-08 7:00 
GeneralRe: Shell Programming - MY CODE! Pin
DaveyM6910-Oct-08 7:45
professionalDaveyM6910-Oct-08 7:45 
GeneralRe: Shell Programming - MY CODE! Pin
Gianpaolo Barci10-Oct-08 7:56
Gianpaolo Barci10-Oct-08 7:56 
GeneralRe: Shell Programming - MY CODE! Pin
DaveyM6910-Oct-08 8:25
professionalDaveyM6910-Oct-08 8:25 
GeneralRe: Shell Programming - MY CODE! Pin
Dave Kreskowiak10-Oct-08 8:27
mveDave Kreskowiak10-Oct-08 8:27 
GeneralRe: Shell Programming - MY CODE! Pin
Gianpaolo Barci10-Oct-08 9:34
Gianpaolo Barci10-Oct-08 9:34 
GeneralRe: Shell Programming - MY CODE! Pin
DaveyM6910-Oct-08 11:27
professionalDaveyM6910-Oct-08 11:27 
Questionmoving 2.0 to 3.0 and up Pin
netJP12L10-Oct-08 4:28
netJP12L10-Oct-08 4:28 
AnswerRe: moving 2.0 to 3.0 and up Pin
DaveyM6910-Oct-08 4:34
professionalDaveyM6910-Oct-08 4:34 
GeneralRe: moving 2.0 to 3.0 and up Pin
netJP12L10-Oct-08 4:40
netJP12L10-Oct-08 4:40 
GeneralRe: moving 2.0 to 3.0 and up Pin
DaveyM6910-Oct-08 4:52
professionalDaveyM6910-Oct-08 4:52 
GeneralRe: moving 2.0 to 3.0 and up Pin
Colin Angus Mackay10-Oct-08 12:51
Colin Angus Mackay10-Oct-08 12:51 
AnswerRe: moving 2.0 to 3.0 and up Pin
Pedram Behroozi10-Oct-08 4:41
Pedram Behroozi10-Oct-08 4:41 
QuestionHDD Serial Number Pin
sasan5610-Oct-08 3:59
sasan5610-Oct-08 3:59 
AnswerRe: HDD Serial Number Pin
Baconbutty10-Oct-08 4:20
Baconbutty10-Oct-08 4:20 
JokeRe: HDD Serial Number Pin
Thomas Stockwell10-Oct-08 4:26
professionalThomas Stockwell10-Oct-08 4:26 
JokeRe: HDD Serial Number Pin
Vasudevan Deepak Kumar10-Oct-08 10:57
Vasudevan Deepak Kumar10-Oct-08 10:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.