MeshCentral/startmeshcentral.cmd
techno-express e29ac0e29d added self making Sfx auto agent installers. scripts .sh and .cmd to to get everything installed quicker.
taking the initial 5 step or more process to take over remote computer to one. a temporary fix to get more in line with other remote support like software. added some scripts linux & windows to quickly setup the whole system on your server.
2018-01-12 00:13:18 -05:00

18 lines
588 B
Batchfile

@echo off
if "%1"=="" (
set PORT=443
) else (
if not "%1"=="install" set PORT=%1
)
if "%2"=="" (
set RPORT=80
) else (
set RPORT=%2
)
cd /D %HOMEPATH%
if "%1"=="install" node node_modules/meshcentral/meshcentral.js --install --cert %USERDOMAIN%
if exist meshcentral-data/webserver-cert-private.key if not "%1"=="install" node node_modules/meshcentral/meshcentral.js --port %PORT% --redirport %RPORT%
if not exist meshcentral-data/webserver-cert-private.key if not "%1"=="install" node node_modules/meshcentral/meshcentral.js --cert %USERDOMAIN% --port %PORT% --redirport %RPORT%