anchor.diff:    GOTO :EOF
   )
   
  -set TITLE="MagnetMessagingConsole"
  -set PROG="mmx-console"
  -
  -
  +if "-p"=="%1" (
  +	set check_port=false
  +	shift
  +)	
   
   if "start"=="%1" (
   	call :start
  
positive.code: 
  
  
  :start
  	if exist %PROG%.pid (
  		echo Error! %PROG% is already running or you have a stale pid file. If %PROG% is not running delete %PROG%.pid file and restart"
  		exit /b 1
  	)	
  	start %TITLE% node start.js	
  	FOR /F "usebackq tokens=2" %%i IN (`tasklist /nh /fi "WINDOWTITLE eq %TITLE%"`) DO echo %%i > .\%PROG%.pid
  
negative.code: 		if "restart"=="%1" (
  			call :restart
  		) else (
  			call :print_usage
  		)
  	)
  ) 
  