@echo off if not ""%1"" == ""START"" goto stop "E:\nuevo\apache\bin\httpd.exe" if errorlevel 255 goto finish if errorlevel 1 goto error goto finish :stop "E:\nuevo\apache\bin\pv" -f -k httpd.exe -q if not exist "E:\nuevo\apache\logs\httpd.pid" GOTO finish del "E:\nuevo\apache\logs\httpd.pid" goto finish :error echo Error starting Apache :finish exit