Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Processs.Start(@"C:\abc\xyz\finename.exe");
can return any value in mvc3 ?
Posted
Comments
Rock (Multithreaded) 21-Feb-14 6:41am    
Yes! It returns bool value.
ZurdoDev 21-Feb-14 7:06am    
What are you trying to do? This sounds like a terrible idea.

1 solution

Yes: http://msdn.microsoft.com/en-us/library/e8zac0ca(v=vs.110).aspx[^]
It returns true if the process was started (i.e. the file was found and an application started to process it if it wasn't an executable) or false if it wasn't.
 
Share this answer
 
Comments
CHill60 21-Feb-14 7:57am    
Happy to be corrected but if OP has supplied a string argument won't it use this overload http://msdn.microsoft.com/en-us/library/53ezey2s(v=vs.110).aspx[^] and return a Process?
OriginalGriff 21-Feb-14 8:06am    
:doh: You're right! I need more caffeine...
CHill60 21-Feb-14 8:09am    
Wasn't sure :-) ... *wandering off to the coffee machine dreaming of bacon butties*

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900