You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

getRulebase.cmd 982B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @ECHO OFF
  2. SETLOCAL
  3. REM ----- Edit This Section --------
  4. SET SNIFFER_PATH=\mdaemon\snf
  5. SET AUTHENTICATION=authenticationxx
  6. SET LICENSE_ID=licensid
  7. REM --------------------------------
  8. CD /d %SNIFFER_PATH%
  9. if not exist UpdateReady.txt GOTO DONE
  10. if exist UpdateReady.lck GOTO DONE
  11. :DOWNLOAD
  12. COPY UpdateReady.txt UpdateReady.lck
  13. wget http://www.sortmonster.net/Sniffer/Updates/%LICENSE_ID%.snf -O %LICENSE_ID%.new.gz --header=Accept-Encoding:gzip --http-user=sniffer --http-passwd=ki11sp8m
  14. if exist %LICENSE_ID%.new.gz gzip -d -f %LICENSE_ID%.new.gz
  15. snf2check.exe %LICENSE_ID%.new %AUTHENTICATION%
  16. if errorlevel 1 goto CLEANUP
  17. if exist %LICENSE_ID%.old del %LICENSE_ID%.old
  18. rename %LICENSE_ID%.snf %LICENSE_ID%.old
  19. rename %LICENSE_ID%.new %LICENSE_ID%.snf
  20. if exist UpdateReady.txt del UpdateReady.txt
  21. if exist UpdateReady.lck del UpdateReady.lck
  22. :CLEANUP
  23. if exist %LICENSE_ID%.new del %LICENSE_ID%.new
  24. if exist UpdateReady.lck del UpdateReady.lck
  25. :DONE
  26. ENDLOCAL