1@if "%ECHOON%"=="" @echo off 2SETLOCAL 3 4REM ****************************************************************** 5REM Usage: 6REM winsymconv 7REM ****************************************************************** 8 9REM ****************************************************************** 10REM Initialize 11REM ****************************************************************** 12SET SCRIPT_LOCATION=%~dp0 13SET DBGHELP_WINHTTP= 14SET USE_WINHTTP= 15 16REM ****************************************************************** 17REM Go to script location 18REM ****************************************************************** 19pushd %SCRIPT_LOCATION% 20 21REM ****************************************************************** 22REM Make sure the symbol file directory exists 23REM ****************************************************************** 24SET SYMBOL_DIR=%SCRIPT_LOCATION%symbol 25if NOT EXIST %SYMBOL_DIR% MKDIR %SYMBOL_DIR% 26if NOT EXIST %SYMBOL_DIR% echo Failed to create directory '%SYMBOL_DIR%' & goto :fail 27 28:restart 29 30REM ****************************************************************** 31REM Convert missing Windows symbols on the staging instance. 32REM ****************************************************************** 33echo Converting missing Windows symbols on staging instance ... 34 35google_converter.exe ^ 36 -n http://msdl.microsoft.com/download/symbols ^ 37 -n http://symbols.mozilla.org/firefox ^ 38 -n http://chromium-browser-symsrv.commondatastorage.googleapis.com ^ 39 -n https://download.amd.com/dir/bin ^ 40 -n https://driver-symbols.nvidia.com ^ 41 -n https://software.intel.com/sites/downloads/symbols ^ 42 -l %SYMBOL_DIR% ^ 43 -s https://clients2.google.com/cr/staging_symbol ^ 44 -m https://clients2.google.com/cr/staging_symbol/missingsymbols ^ 45 -t https://clients2.google.com/cr/staging_symbol/fetchfailed ^ 46 -b "google|chrome|internal|private" ^ 47 > %SCRIPT_LOCATION%last_cycle_staging.txt 48 49REM ****************************************************************** 50REM Convert missing Windows symbols on the production instance. 51REM ****************************************************************** 52echo Converting missing Windows symbols on production instance ... 53 54google_converter.exe ^ 55 -n http://msdl.microsoft.com/download/symbols ^ 56 -n http://symbols.mozilla.org/firefox ^ 57 -n http://chromium-browser-symsrv.commondatastorage.googleapis.com ^ 58 -n https://download.amd.com/dir/bin ^ 59 -n https://driver-symbols.nvidia.com ^ 60 -n https://software.intel.com/sites/downloads/symbols ^ 61 -l %SYMBOL_DIR% ^ 62 -s https://clients2.google.com/cr/symbol ^ 63 -m https://clients2.google.com/cr/symbol/missingsymbols ^ 64 -t https://clients2.google.com/cr/symbol/fetchfailed ^ 65 -b "google|chrome|internal|private" ^ 66 > %SCRIPT_LOCATION%last_cycle_prod.txt 67 68REM ****************************************************************** 69REM Sleep for 5 minutes ... 70REM ****************************************************************** 71echo Sleeping for 5 minutes ... 72 73%SCRIPT_LOCATION%sleep.exe 300 74 75REM ****************************************** 76REM Restart work loop ... 77REM ****************************************** 78goto :restart 79 80:success 81ENDLOCAL 82exit /b 0 83 84:fail 85ENDLOCAL 86exit /b 1 87