Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/12/2014, 12:41
Avatar de iDEVELOPwithGNUlinux
iDEVELOPwithGNUlinux
 
Fecha de Ingreso: febrero-2012
Mensajes: 27
Antigüedad: 12 años, 3 meses
Puntos: 0
Respuesta: ¿Cómo hago para ejecutar en segundo plano en Batch?

Bien, lo he resuelto de la siguiente manera.

El start.bat tiene el siguiente código:
Código:
@echo off

start /b bin\apache\apache2.4.9\bin\httpd.exe

start /b bin\mysql\mysql5.6.17\bin\mysqld.exe

javaw -jar aplicacion\programajava.jar
Y he creado otro script, start.vbs, que contiene el siguiente código:
Código:
Dim WinScriptHost
Set WinScriptHost = CreateObject("WScript.Shell")
WinScriptHost.Run Chr(34) & "start.bat" & Chr(34), 0
Set WinScriptHost = Nothing
El que se tiene que ejecutar es el start.vbs.