anchor.diff:  :print_usage
   	echo Usage: mmx-console.bat [-p] {start^|stop^|restart}
   	echo.
  -	echo Start, stop, or restart the Magnet Message console.
  +	echo Start, stop, or restart the %PROGNAME%.
   	echo. 
   	echo Options:
   	echo    -p    No port check when starting.
  
positive.code: 
  :start
  	if %check_port%==true (
  		call :check_ports
  		echo. 
  	)
  	call :check_node
  
  	if exist %PROG%.pid (
  		echo.
  		echo Error! Magnet Message console is already running or you have a stale pid file. If Magnet Message console is not running, then please delete mmx-standalone-dist-win\console\mmx-console.pid file and try again.
  		exit 1
  	)	
  	if bundle==%whichnode% (
  		start %TITLE% .\node start.js
  	) else ( 
  		start %TITLE% node start.js
  	)
  	timeout /t 3 >nul
  	FOR /F "usebackq tokens=2" %%i IN (`tasklist /nh /fi "WINDOWTITLE eq %TITLE%"`) DO echo %%i > .\%PROG%.pid
  goto :end
  
  
  
  :check_ports
  	netstat -aon | findstr "%PORT_TO_CHECK%" 1>NUL
  	if %ERRORLEVEL% equ 0 (
  		echo.
  		echo Error! TCP port "%PORT_TO_CHECK%" is already in use; thus, cannot start Magnet Message. Please refer to readme.htm on how to change the ports.
  		exit 1
  	)
  	echo Using ports "%PORT_TO_CHECK%"
  goto :eof
  
  
  
negative.code: @echo off
  
  rem Please change .\startup.properties if you would like to use ports other than the default ones.
  rem For detail, please reference the troubleshooting guide.
  
  setlocal
  
  if "%selfWrapped%"=="" (
    SET selfWrapped=true
    %ComSpec% /s /c ""%~0" %*"
    GOTO :EOF
  )
  
  set check_port=true
  set TITLE="Administrationwebinterface"
  set PROGNAME="Administration web interface"
  set PROG="mmx-console"
  set whichnode=bundle
  
  
  
  call :check2Args %*
  
  call :loadPorts ..\startup.properties
  
  if "-p"=="%1" (
  	set check_port=false
  