anchor.diff:  :installdev
   SETLOCAL
   SET _devname=%1
  -echo {"username":"matttest","password":"matttest","device_name":"%_devname%","reinstall":false} > %_setupfile%
  +echo {"username":"%_ouruser%","password":"%_ourpass%","device_name":"%_devname%","reinstall":false} > %_setupfile%
   
   echo Setting up SpiderOak as device %_devname%...
   %_spideroak% --setup=%_setupfile% > %_appout%
  
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: )
  
  :: Didn't setup the device & didn't find device name already exists.
  ENDLOCAL & SET _result=2
  GOTO:eof
  
  :: Gets the device ID from a device number.
  