Problem background:
Idea with git will remind you of the following error
arbitrary: use of Rex. W is meaningless (default operand size is 64)
because there is security software, you need to add a key in the registry
Computer \ HKEY_ LOCAL_ Create a new [string value] HookApi under machine \ software \ Tec \ ocular. 3 \ agent \ config_ Dis INS, numerical data: 1
but it’s too troublesome to manually add and restart idea every time. Now it’s changed to automatically add registry configuration after startup
1. Find a directory and create two files, one regidea.bat and one regidea.log
As shown in Figure
2. Modify the bat file and enter the following instructions
(reg query HKEY_LOCAL_MACHINE\SOFTWARE\TEC\Ocular.3\agent\config /v hookapi_disins && (echo %date:~0,4%-%date:~5,2%-%date:~8,2% %time:~0,2%:%time:~3,2%:%time:~6,2% reg exist... >>%~dp0\regIdea.log )) || ((reg add HKEY_LOCAL_MACHINE\SOFTWARE\TEC\Ocular.3\agent\config /t REG_SZ /v hookapi_disins /d 1)&&(echo %date:~0,4%-%date:~5,2%-%date:~8,2% %time:~0,2%:%time:~3,2%:%time:~6,2% reg set suc... >>%~dp0\regIdea.log ))
The main idea is to query whether there is a hook API in the registry_ Dis INS, set and print a line of text set suc… In regidea.log
If yes, print reg exist…
log file just to see if the instruction takes effect
3. Create a shortcut to the bat file and drag it into the following directory
C: \ users \ XXX \ appdata \ roaming \ Microsoft \ windows \ start menu \ programs \ startup
where XXX is the user name
if the directory cannot be found, check the view hidden item of the folder
Read More:
- IntelliJ idea sets the default working directory
- Mysql reports an error Operand should contain 1 column(s)
- PostgreSQL sets the default value of the field to the current year
- Because the computer is stuck, force to restart the computer and open idea idea to report an error on line 1: no content is allowed in the foreword.
- The idea code pushes to GitHub and reports an error fatal: unable to access
- @Value sets the default value
- The remote port occupation of Linux startup jar package script reports an error
- Warning: failed to get default registry endpoint from daemon
- Idea | change the default configuration of idea to open a new project
- The web project removal server reports an error, and the web project in eclipse cannot be automatically deployed to Tomcat
- Let reports an error in idea
- Clion automatically adds add_ executable
- Wrong installation of registry to registry
- [OpenGL · error] visual studio 2019 reports an error. It is an external symbol gladloadglloader that cannot be parsed. This symbol is referenced in the function main
- HBase hangs up immediately after startup. The port reports an error of 500 and hmaster aborted
- The common module of idea Maven parent-child project packages and reports an error
- Pull the git warehouse code IDEA reports an error: Clone failed: Authentication failed for’http://10.xx.XXXXXXXXXXXXXXXXX’
- Halo blog system reports log error when idea is running
- In idea, @ slf4j is used to report an error, but log is not found
- Vue Alain startup command yarn serve reports an error