Windows Service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • alim

    #1

    Windows Service

    Hi! Can anyone give a snippet of code on how to start in
    Windows Service, an executable file much like the start
    command in a batch file. ie. start myapp.exe arg.somefile

    Thanks,
    ALim

  • JoE

    #2
    Re: Windows Service

    To start a service
    'net start btssvc'

    To stop a service
    'net stop btssvc'


    "alim" <amy1im@yahoo.c om> wrote in message
    news:090301c34f 8f$d0d65190$a40 1280a@phx.gbl.. .[color=blue]
    > Hi! Can anyone give a snippet of code on how to start in
    > Windows Service, an executable file much like the start
    > command in a batch file. ie. start myapp.exe arg.somefile
    >
    > Thanks,
    > ALim
    >[/color]


    Comment

    • alim

      #3
      Re: Windows Service

      Joe,
      Thanks for your suggestion, but I'm sorry my request was
      not so clear. I just wanted to figure out how I could run
      an executable file inside the OnStart method in the
      ServiceBase class. Most examples in how to create a
      Windows Service just prints into a log file or a console,
      my question, I guess, is how does .NET runs an executable
      file. Let me know if I'm still not making sense here.
      Thanks again,
      Alim
      [color=blue]
      >-----Original Message-----
      >To start a service
      >'net start btssvc'
      >
      >To stop a service
      >'net stop btssvc'
      >
      >
      >"alim" <amy1im@yahoo.c om> wrote in message
      >news:090301c34 f8f$d0d65190$a4 01280a@phx.gbl. ..[color=green]
      >> Hi! Can anyone give a snippet of code on how to start in
      >> Windows Service, an executable file much like the start
      >> command in a batch file. ie. start myapp.exe[/color][/color]
      arg.somefile[color=blue][color=green]
      >>
      >> Thanks,
      >> ALim
      >>[/color]
      >
      >
      >.
      >[/color]

      Comment

      Working...