# 命令大杂烩 - 技术分享 - 生活 | ☆∵∴Hito∴∵★ = 涛声依旧 = 天下事有难易乎？为之，则难者亦易矣
Keywords: 命令

#### # 日常命令记录

    #windows 系统修复

    DISM.exe /Online /Cleanup-image /Scanhealth

    DISM.exe /Online /Cleanup-image /Restorehealth

    sfc /scannow

    #windows 网络修复

    netsh winsock reset

    #合并 ts 文件

    copy /b c:\Users\hito\Downloads\*.ts d:\50.mp4

    #windows11 家庭版安装 Hyper-V（以下命令拷贝到 txt 文本后重命名为 bat 文件然后用管理员权限运行）

    pushd "%~dp0"

    dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >> hyper-v.txt

    for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"

    del hyper-v.txt

    Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL

    #mysql 查看索引使用情况

    EXPLAIN SELECT A.XXX, B.XXX FROM TABLE1 A, TABLE2 B ON A.XXX = B.XXX;

    #mysql 使用触发器插入数据自动生产 uuid 主键

    insert_before  BEFORE  插入

    BEGIN

    			SET NEW.ID = REPLACE(UUID(),"-","");

    END

    #excel

    #合并

    =CONCATENATE("EX010",D2,C2,"1")

    #截断

    =LEFT(E2,6)

    #判断取值

    =IF(O2="宜都市","420500000000000",IF(O2="高新区","420592000000000",IF(O2="枝江市","420583000000000",IF(O2="当阳市","420582000000000",IF(O2="远安县","420525000000000",IF(O2="兴山县","420526000000000",IF(O2="秭归县","420527000000000",IF(O2="长阳","420528000000000",IF(O2="五峰县","420529000000000",IF(O2="夷陵区","420506000000000",IF(O2="点军区","420504000000000",IF(O2="西陵区","420502000000000",IF(OR(ISNUMBER(FIND({"伍家";"伍家区";"伍家岗区"},O2))),"420503000000000",IF(OR(ISNUMBER(FIND({"猇亭";"猇亭区"},O2))),"420505000000000"))))))))))))))

    #经纬度计算

    =LEFT(T2,FIND("°",T2)-1)+MID(T2,FIND("°",T2)+1,FIND("′",T2)-FIND("°",T2)-1)/60+MID(T2,FIND("′",T2)+1,FIND("″",T2)-FIND("′",T2)-1)/3600

命令