bat文件简短
Published on 2023-02-28 20:57 in Quebec with Ggonekim9

bat文件简短

作者:@ggonekim9
本文为作者原创,转载请注明出处:https://www.cnblogs.com/ggonekim/p/17165963.html


    bat文件

    @echo off
    
    F:
    
    cd\pictures\projectStreet\FloatingShinyKnot-main
    
    node server.js
    
    cd\
    
    

    bat静默运行(但会闪一下)

    if "%1" == "h" goto begin
    
    mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
    
    :begin
    
    REM
    
    

    关闭静默端口

    @echo off
    set port=8070
    for /f "tokens=1-5" %%i in ('netstat -ano^|findstr ":%port%"') do taskkill /pid %%m -t -f
    exit
    
    posted @   Allis  阅读(18)  评论(0编辑  收藏  举报
    相关博文:
    阅读排行:
    · 物流快递公司核心技术能力-地址解析分单基础技术分享
    · 单线程的Redis速度为什么快?
    · 展开说说关于C#中ORM框架的用法!
    · Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
    · SQL Server 2025 AI相关能力初探
    点击右上角即可分享
    微信分享提示