anchor.diff:  )
   
   :: Didn't setup the device & didn't find device name already exists.
  -ENDLOCAL & SET_result=2
  +ENDLOCAL & SET _result=2
   GOTO:eof
   
   :: Gets the device ID from a device number.
  
positive.code: %_spideroak% --userinfo > %_appout%
  SETLOCAL
  SET _devname=%1
  for /f "tokens=1,2 delims=#" %a in ('findstr /r "%_devname%" %_appout%') do set _=%a&set _devnum=%b
  
  ENDLOCAL & SET _devnum=%_devnum:)=%
  GOTO:eof
  
negative.code: :installdev
  SETLOCAL
  SET _devname=%1
  echo {"username":"%_ouruser%","password":"%_ourpass%","device_name":"%_devname%","reinstall":false} > %_setupfile%
  
  echo Setting up SpiderOak as device %_devname%...
  %_spideroak% --setup=%_setupfile% > %_appout%
  