AutoExNT service won't start

Discussion in 'Windows Server' started by Rune, Dec 31, 2007.

  1. Rune

    Rune Guest


    I have tried to use the AutoExNT-mechanism to create a service for running a
    java application (Protégé) via a bat-file on a Windows 2003 standard x64

    I follow the instructions and everything seems fine. The service is created

    When I try to start the service I get an error message saying:
    Rune, Dec 31, 2007
    1. Advertisements

  2. AutoExNT is Windows NT legacy stuff. Much better to use srvany
    and instsrv:
    Pegasus \(MVP\), Dec 31, 2007
    1. Advertisements

  3. Rune

    Rune Guest

    Thx - But on the page it says:

    .... (but not for batch files) ...

    So it cannot be used to run the bat file, which I think I need to run the
    java application with parameters.
    Rune, Dec 31, 2007
  4. Yes, it can. Here is a typical installation file I recently used:
    @echo off
    goto Start
    This batch file will install or remove the TOLService
    service. Its sole purpose is to invoke the batch file
    c:\Tools\TOLMonitor.bat boot time.
    echo Installing the service . . .
    regsvr32 /s %SystemRoot%\System32\vbscript.dll
    c:\Tools\instsrv TOLService c:\Tools\srvany.exe
    regedit /s c:\Tools\TOLService.reg
    net start TOLService

    And here is the .reg file that goes with it:

    ; This registry value will cause the file c:\Tools\TOLMonitor.bat
    ; to execute when the service is started.

    Pegasus \(MVP\), Dec 31, 2007
  5. Rune


    Mar 1, 2012
    Likes Received:

    Bit old thread but it I came passed it while searching for an answer so maybe someone else will find it also now.

    I have Autoexnt working under Windows 2008 R2 after some troubleshooting with the following adjustments.

    - Extract the windows 2003 resourcekit to "C:\Program Files (x86)\Windows Resource Kits\Tools"
    - Install the service like the manual says
    - Open regedit and go to the following key: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\AutoExNT]
    - Edit the value "ImagePath" to: C:\Program Files (x86)\Windows Resource Kits\Tools\AutoExNT.Exe
    - Copy your Autoexnt.bat to the folder: C:\Windows\SysWOW64

    Autoexnt will now start :)
    adroa, Mar 1, 2012
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.