How to open a website URL in browser without of Process.start(...) :
System.Diagnostics.Process.Start(@"http://www.google.com");
I can not use Process.Start() in Windows Service , I do not no know why.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
See the answer to the question “How can a Windows service execute a GUI application?“:
Note also the opinion that you shouldn’t do this 🙂
If all you are doing is launching a URL, the command might be
If you want to suppress the briefly-displayed Command Prompt window, you can set the
wShowWindowfield of theSTARTUPINFOstructure toSW_HIDE, or in .NET set theProcessStartInfo.WindowStyleproperty toProcessWindowStyle.Hidden.