首页 > 其他分享 >全拼双拼切换 bat 脚本

全拼双拼切换 bat 脚本

时间:2023-11-25 22:01:25浏览次数:36  
标签:bat Enable 全拼 MainKey% echo Pinyin 双拼

@echo off

set Mainkey=HKEY_CURRENT_USER\SOFTWARE\Microsoft\InputMethod\Settings\CHS

for /f %%i in ('reg query %MainKey% /v "Enable Double Pinyin" ^| findstr /i "0x1"') do (set flg=%%i)

if not defined flg (
    reg add %MainKey% /v "Enable Double Pinyin" /t REG_DWORD /d 0x1 /f
    echo 已切换到双拼
) else (
    reg add %MainKey% /v "Enable Double Pinyin" /t REG_DWORD /d 0x0 /f
    echo 已切换到全拼
)

pause

标签:bat,Enable,全拼,MainKey%,echo,Pinyin,双拼
From: https://www.cnblogs.com/ainsliaea/p/17856192.html

相关文章

  • 若依集成mybatisplus实现mybatis增强
    ......
  • 一文讲明Mybatis 的使用 超详细 【爆肝两万字教程】
    >我|在这里>......
  • Spring_2023_11_24_2 Spring整合mybatis--Spring中的事务管理(注解形式)
    Spring整合mybatis--Spring中的事务管理(注解形式)application.xml<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:tx="http://www.springframework.org/schema/tx&quo......
  • 【Spring】Spring5+Spring5MVC+Mybatis+H2の環境構築(高)
    参考URL:(初)https://www.cnblogs.com/lnsylt/p/10258457.html(中)https://www.cnblogs.com/lnsylt/p/10315455.html①pom.xml1<?xmlversion="1.0"encoding="UTF-8"?>2<projectxmlns="http://maven.apache.org/POM/4.0.0"......
  • Ubuntu 24.04 LTS “Noble Numbat” 预计于 2024 年 4 月 25 日发布
    导读Canonical今天宣布了下一个Ubuntu版本的代号,Ubuntu24.04LTS,代号“NobleNumbat”,计划于明年的4月25日发布。这个即将发布的版本预计将搭载GNOME46桌面环境。Ubuntu24.04LTS“NobleNumbat”将是Canonical的第40个Ubuntu发行版和第10个LTS(长......
  • MyBatis知识点
    Mybatis1、Mybatis是一公半ORM(对象关系映射)框架,它内部封装了JDBC,开发时只需要关注SQL语句本身,不需要花费精力去处理加载驱动。创建连接、创建statement等繁杂的过程;2、MyBatis可以使用XML或注解来配置和映射原生信息,将POJO映射成数据库中的记录,避免了几乎所有的JDBC代码和手动......
  • Spring_2023_11_23_3 Spring整合mybatis----注解方式
    Spring整合mybatis----注解方式2023-11-2317:18:29星期四a) 依赖的引入<!--spring基础依赖--><dependency><groupId>org.springframework</groupId><artifactId>spring-context</artifactId><ver......
  • Bat命令总结
    切换到指定目录cd命令可以切换到指定目录,但是默认是C盘下的目录,要切换到d盘下的目录,有2种方法:1,先切换到d盘,再切换到指定目录d:cdD:\abc2,,用/d选项cd/dD:\abc/d:这是cd命令的一个选项,指定改变驱动器和目录。/d表示可以改变当前驱动器,而不仅仅是当前目录。切换都bat文......
  • Mybatis保存多记录,导致SQL过长,保存失败,按指定次数切分,多次保存。
     privatestaticfinalIntegerWORKITEM_MAX_NUMBER=200;privateintsavePbhProblemworkitem(List<ProblemWorkitemVm>problemworkitem){try{intcount=0;intlimit=countStep(problemworkitem.size(),WORKI......
  • mybatis-plus 使用总结
    Java开发组件1.IDEA2.JDK3.Git4.Maven安装配置5.Mysql6.Mybatis7.Mybatis-plus8.Nacos9.Openfeign10.Gateway11.xxl-job-admin12.Skywalking13.Sentinel14.Arthas15.Redis16.Mongodb17.ES18.StarRocks19.Datax-----------------mybatis-plus使用总结--------......