Find Jobs
Hire Freelancers

Create WSH script for running Java application as a Service

$30-5000 USD

Cerrado
Publicado hace más de 13 años

$30-5000 USD

Pagado a la entrega
I need a WSH script that will allow me to run a java application as a service. The normal way of doing this is to: 1) ? put the command for running this application in a batch file (java -jar path\[login to view URL]) 2) use the instructions provided here (<[login to view URL]>) to create a service that will run the batch file. My problem is that the [login to view URL] is too big for my purpose. To reduce the size of my application, what [login to view URL] is doing should be done using WSH. I managed to write a WSH script that apperently does the same thing as instsvc.exe. It creates the service and configure this service as specified on the Microsoft site. My problem is that i did not manage to start the service. The WSH script that I created is below. It attempts to start Textpad as a service. So, your work is to debug this script, get it running, and replace [login to view URL] with a batch file which in turn a Java application. Const OWN_PROCESS = 16 Const NOT_INTERACTIVE = False Const NORMAL_ERROR_CONTROL = 2 Dim sName, sDisplayName, sPath, sType sName = "Malade9" sDisplayName = "Malade9" sPath = "C:\Users\fenkam\Desktop\WSH\[login to view URL]" sType = "Automatic" strComputer = "." Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objService = [login to view URL]("Win32_BaseService") errReturn = [login to view URL](sName, sDisplayName, sPath, OWN_PROCESS, NORMAL_ERROR_CONTROL, sType, NOT_INTERACTIVE,"NT Authority\LocalService", "") Set WshShell = CreateObject("[login to view URL]") myKey = "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Malade9\Application" [login to view URL] myKey,"C:\Program Files (x86)\TextPad 5\[login to view URL]","REG_SZ"
ID del proyecto: 3678411

Información sobre el proyecto

1 propuesta
Proyecto remoto
Activo hace 14 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
1 freelancer está ofertando un promedio de $9 USD por este trabajo
Avatar del usuario
See private message.
$8,50 USD en 3 días
5,0 (17 comentarios)
5,0
5,0

Sobre este cliente

Bandera de UNITED STATES
Toronto, United States
4,8
117
Miembro desde abr 18, 2008

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.