how to add "C:\WINDOWS\system32\svchost.exe -k netsvcs" this service to my project

Posted by rameshmandapelly-7781 under C# on 2/9/2011 | Points: 10 | Views : 2024 | Status : [Member] | Replies : 5
how to add "C:\WINDOWS\system32\svchost.exe -k netsvcs" this service to my project i tryed to add but it is is saying path or fill can find
please try and inform me




Responses

Posted by: Naimishforu on: 2/9/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
I think command line options will not work in code!!!

You need to provide only this "C:\WINDOWS\system32\svchost.exe"

Thanks

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

rameshmandapelly-7781, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Prabhakar on: 2/9/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
hi

Write on Button Click

System.Diagnostics.Process.Start("c:\\windows\\system32\\svchost.exe");

it's help full for u ... if you satisfied my answer so click on Mark As Answer

Best Regard's
Prabhakar

rameshmandapelly-7781, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/9/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Check this code... Same way you can give your command line with arguments to use it

http://www.dotnetfunda.com/codes/code1045-unregister-com-at-runtime.aspx

Thanks
Karthik
www.f5Debug.net

rameshmandapelly-7781, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 2/9/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Nice one Karthik, I didn't know we can achieve the same by that way also.

Thanks :)

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

rameshmandapelly-7781, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/9/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Sure Naimishforu ... this will be the straight forward method...

Thanks
Karthik
www.f5Debug.net

rameshmandapelly-7781, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response