V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
simple2025
0D
V2EX  ›  问与答

windowsterminal 使用 wt 拉起来的,有什么办法可以寻找到某个 windowsterminal 吗?

  •  
  •   simple2025 · Dec 30, 2024 · 940 views
    This topic created in 486 days ago, the information mentioned may be changed or developed.

    因为我现在的 bat 脚本是

    先杀死所有的 windowsterminal 进程, 然后再 wt 启动进程,有什么办法,可以只杀死 wt 启动的进程吗?

    bat 脚本的一部分

    TASKKILL /F  /IM WindowsTerminal.exe /T
    
    
    wt -s 1000 --title "startup-image" -p "Command Prompt" -d C:\\wincode\\localpy\\dj_image C:\\py311\\python.exe manage.py runserver 192.168.33.1:9000   --nothreading;^
    new-tab --title "startup-sftp back day backup files" C:\\py312\\python.exe C:\\wincode\\localpy\\file_back\\sftp_all.py;^
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2518 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:10 · PVG 14:10 · LAX 23:10 · JFK 02:10
    ♥ Do have faith in what you're doing.