Win configures the registration list through dos_PHP tutorial

WBOY
Release: 2016-07-12 08:54:15
Original
999 people have browsed it

Win configures the registration list through dos

Due to the large number of servers, the need is to configure environment variables. In order not to be tired and to reduce stress, this article is written! Hehe... The requirements are as shown in the figure:
Win configures the registration list through dos_PHP tutorial Baidu later learned that configuration through the set command in dos can only take effect temporarily, and it will become invalid after the command line terminal is closed! If you want it to be effective all the time, the only feasible way is to use the registration list or the manual configuration we often use (the baby feels bitter, but the baby doesn’t say~~~~(>_REG ADD KeyName [/v ValueName | /ve] [/t Type] [/s Separator] [/d Data] [/f]KeyName [\Machine]FullKey #The machine of the remote machine Name - Ignore the default to the current machine/v The value name to be added under the selected item/ve Add a blank value name to the registry key/t RegKey data type
[ REG_SZ | REG_MULTI_SZ | REG_DWORD_BIG_ENDIAN |REG_DWORD | REG_BINARY | REG_DWORD_LITTLE_ENDIAN |REG_NONE | REG_EXPAND_SZ ] 注意:如果忽略,则采用 REG_SZ

reg export "hklmsystemcurrentcontrolsetcontrolsession managerenvironment" env.reg
[REG_SZ | REG_MULTI_SZ | REG_DWORD_BIG_ENDIAN |REG_DWORD | REG_BINARY | I_SZ data string /d is required The character used as a delimiter for the data assigned to the added registry ValueName. If omitted, "Use REG:
set regpath=HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerEnvironment::系统环境变量::HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerEnvironment::用户环境变量::HKEY_CURRENT_USEREnvironmentreg add "%regpath%" /v "" /d ""将上面的内容替成你需要定义的名称和值就可以了.
Note that the symbol "::" is the comment content in the dos command. 3. Using the system editor to modify the environment variables will eventually be reflected in the registry and saved. We know that there are two types of environment variables, user variables. , and system variables, their storage locations are respectively located at:
系统变量:[HKLMSYSTEMControlSet001ControlSession ManagerEnvironment][HKLMSYSTEMControlSet002ControlSession ManagerEnvironment][HKLMSYSTEMCurrentControlSetControlSession ManagerEnvironment]用户变量:[HKCUEnvironment]其中HKLM = HKEY_LOCAL_MACHINE,HKCU = HKEY_CURRENT_USER
Note the problem:
ControlSet001/ControlSet002/CurrentControlSet保存用于系统启动的重要配置信息,其中 CurrentControlSet指向ControlSet001,两者互相同步,每次针对两者中任意一个分支的修改都会立即复制到另外一个分支相对应 的键值中。当系统启动时,会使用其中一个分支的信息以尝试启动系统,这个就是ControlSet001,如果启动成功,那么ControlSet001的信息会复制到ControlSet002中。如果启动失败,那么就不会发生这个复制过程。当系统因某些原因无法启动时,我们通常会使用“Using the Last Known Good Configuration”来尝试启动系统,也就是“最后一次正确的配置”(启动时按住F8),这时系统使用的就是ControlSet002分支的配置信息。
4. Solve the problem: Edit the following content in the newhua.bat text file:
set regpath=hkey_local_machinesystemcurrentcontrolsetcontrolsession managerenvironment::echo.echo =================================echo 环境变量设置echo =================================echo.set /p en=请按 回车键 确认设置开始!echo.::set huajun_home=D:newhua #设置当前命令行的变量,关闭后即失效echo 新创建环境变量 huajun_home=D:newhuareg add "%regpath%" /v "huajun_home" /d "D:newhua" /fecho.color 17 echo ************ jdk系统环境变量设置 结束! *********** echo. echo 请按 任意键 退出!
Double-click to run the batch file to complete the configuration of environment variables! 3. Check the results: 1) Right-click on My Computer and select "Properties"
Win configures the registration list through dos_PHP tutorial 2) Select the "Advanced" tab, then click "Environment Variables" below
Win configures the registration list through dos_PHP tutorial 3) View system variables
Win configures the registration list through dos_PHP tutorial Questions are the driving force for our learning. The next question starts...

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1120300.htmlTechArticlewin configures the registration list through dos. Due to the large number of servers, the requirement is to configure environment variables. In order not to be tired, in order Reduce stress hence this article! Hehe...the requirements are as shown in the picture:...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!