how to pass arguments to windows services in c#?

Posted by eurekha_ananth on Stack Overflow See other posts from Stack Overflow or by eurekha_ananth
Published on 2012-04-12T10:49:53Z Indexed on 2012/04/12 11:29 UTC
Read the original article Hit count: 176

Filed under:
|

I just want to know how to pass arguments to windows services . The problem is , i am developed a windows application and then called it from Onstart() method . Now , i want to call the particular function from another project .

 protected override void OnStart(string[] args)
        {

            Process.Start("C:\\Program Files\\macro.exe");

        }

I want to call a function inside the macro.exe project with arguments . Any suggestions

© Stack Overflow or respective owner

Related posts about c#

Related posts about windows-services