Confira nosso post relacionado: 👉 “Adicionando sites na Lista de Exceções do Java”.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
setlocal EnableDelayedExpansion set "VAR[0]=https://caged.maisemprego.mte.gov.br/" set "VAR[1]=http://caged.maisemprego.mte.gov.br/" set "VAR[2]=https://cmt.caixa.gov.br/" set "VAR[3]=http://cmt.caixa.gov.br/" set "VAR[4]=https://cmt.caixa.gov.br/cse/" set "VAR[5]=http://cmt.caixa.gov.br/cse/" set "VAR[6]=https://conectividade.caixa.gov.br/" set "VAR[7]=http://conectividade.caixa.gov.br/" set "VAR[8]=https://caixa.gov.br/" set "diretorio=%SYSTEMDRIVE%\Users\%USERNAME%\AppData\LocalLow\Sun\Java\Deployment\security\" cd /d "%diretorio%" if exist "exception.sites" ( copy "exception.sites" "exception.sites.bkp" del "exception.sites" ) (for /L %%a in (0,1,8) do ( echo !VAR[%%a]! )) > "exception.sites" pause |
—
🐍 Ou, se preferir, use Python:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import os VAR = [ "https://caged.maisemprego.mte.gov.br/", "http://caged.maisemprego.mte.gov.br/", "https://cmt.caixa.gov.br/", "http://cmt.caixa.gov.br/", "https://cmt.caixa.gov.br/cse/", "http://cmt.caixa.gov.br/cse/", "https://conectividade.caixa.gov.br/", "http://conectividade.caixa.gov.br/", "https://caixa.gov.br/" ] diretorio = os.path.join(os.environ['LOCALAPPDATA'], "..", "LocalLow", "Sun", "Java", "Deployment", "security") os.chdir(diretorio) if os.path.exists("exception.sites"): os.rename("exception.sites", "exception.sites.bkp") with open("exception.sites", "w") as f: for url in VAR: f.write(url + "\n") input("Pressione Enter para continuar...") |
*Atualizado em 7 de abril de 2023