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

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

  •  
  •   simple2025 · Dec 30, 2024 · 938 views
    This topic created in 484 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   ·   1023 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 22:02 · PVG 06:02 · LAX 15:02 · JFK 18:02
    ♥ Do have faith in what you're doing.