Windows系统清除占用的串口号列表批处理

蛋疼总是无缘无故被占用

@echo off 
reg query "HKLM\SYSTEM\CurrentControlSet\Control\COM Name Arbiter" /v ComDB
if %errorlevel%==0 (
    echo Y| reg delete "HKLM\SYSTEM\CurrentControlSet\Control\COM Name Arbiter" /v ComDB /f
        echo clear successfully!
)else(
        echo ok!    
)
pause

 

posted @ 2019-07-03 15:46  landv  阅读(1427)  评论(0编辑  收藏  举报