1. Welcome Guest! In order to create a new topic or reply to an existing one, you must register first. It is easy and free. Click here to sign up now!.
    Dismiss Notice

Running a .exe as a service

Discussion in 'Windows Home Server' started by Stuart Hartley, Apr 15, 2009.

  1. hi,

    i need to run two applications as a service on windows 2003 64-bit R2. I
    have tried instsrv / srvany, i can successfully add as a service yet i cannot
    get it to actually launch the applications.
    i tried following a few tips and tricks at Mibuso.com but had no luck, they
    suggested i try over here.
    was wondering how it would be possible to launch a .bat file as a sevice so
    that i don't have to rely upon the system being logged on (added to startup
    folder).
    i have done a search and saw a method of using a .batch file with a .reg
    file to do this, however i was unable to get it to work.
    was hoping a kind soul would be able to give some steps in order to
    accomplish.

    sincerely,

    stuart hartley
     
  2. Stuart Hartley <StuartHartley@discussions.microsoft.com> wrote:
    > hi,
    >
    > i need to run two applications as a service on windows 2003 64-bit
    > R2. I have tried instsrv / srvany, i can successfully add as a
    > service yet i cannot get it to actually launch the applications.
    > i tried following a few tips and tricks at Mibuso.com but had no
    > luck, they suggested i try over here.
    > was wondering how it would be possible to launch a .bat file as a
    > sevice so that i don't have to rely upon the system being logged on
    > (added to startup folder).
    > i have done a search and saw a method of using a .batch file with a
    > .reg file to do this, however i was unable to get it to work.
    > was hoping a kind soul would be able to give some steps in order to
    > accomplish.
    >
    > sincerely,
    >
    > stuart hartley


    I've never had any luck with srvany. You might check out the eval of
    FireDaemon Pro ...it's worked very well for me in the past.
     
  3. Hi Lanwench,

    Will give that a try - thanks for the reply :)

    "Lanwench [MVP - Exchange]" wrote:

    > Stuart Hartley <StuartHartley@discussions.microsoft.com> wrote:
    > > hi,
    > >
    > > i need to run two applications as a service on windows 2003 64-bit
    > > R2. I have tried instsrv / srvany, i can successfully add as a
    > > service yet i cannot get it to actually launch the applications.
    > > i tried following a few tips and tricks at Mibuso.com but had no
    > > luck, they suggested i try over here.
    > > was wondering how it would be possible to launch a .bat file as a
    > > sevice so that i don't have to rely upon the system being logged on
    > > (added to startup folder).
    > > i have done a search and saw a method of using a .batch file with a
    > > .reg file to do this, however i was unable to get it to work.
    > > was hoping a kind soul would be able to give some steps in order to
    > > accomplish.
    > >
    > > sincerely,
    > >
    > > stuart hartley

    >
    > I've never had any luck with srvany. You might check out the eval of
    > FireDaemon Pro ...it's worked very well for me in the past.
    >
    >
    >
     
  4. Dave Warren

    Dave Warren Guest

    In message <98A17678-2FCB-42EE-9BC3-6BC8CAD10210@microsoft.com> Stuart
    Hartley <StuartHartley@discussions.microsoft.com> was claimed to have
    wrote:

    >hi,
    >
    >i need to run two applications as a service on windows 2003 64-bit R2. I
    >have tried instsrv / srvany, i can successfully add as a service yet i cannot
    >get it to actually launch the applications.
    >i tried following a few tips and tricks at Mibuso.com but had no luck, they
    >suggested i try over here.
    >was wondering how it would be possible to launch a .bat file as a sevice so
    >that i don't have to rely upon the system being logged on (added to startup
    >folder).
    >i have done a search and saw a method of using a .batch file with a .reg
    >file to do this, however i was unable to get it to work.
    >was hoping a kind soul would be able to give some steps in order to
    >accomplish.


    You'll need a srvany type tool, launch cmd and instruct it to run the
    batchfile, something like this:

    %systemroot%\system32\cmd.exe /c c:\blah.cmd
     

Share This Page