V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
csking119
V2EX  ›  程序员

Ruby 如何控制关闭打开的 exe 程序或者杀掉其进程

  •  
  •   csking119 · 2015-11-25 19:07:38 +08:00 · 3012 次点击
    这是一个创建于 3046 天前的主题,其中的信息可能已经有所发展或是发生改变。

    工作需要编写一个定时打开和定时关闭 exe 文件的程序,打开 exe 可以用
    system 'c:\abc.exe' #执行打开

    关闭或者杀掉进程怎么弄?

    2 条回复    2015-11-25 23:25:17 +08:00
    blacktulip
        1
    blacktulip  
       2015-11-25 19:12:41 +08:00   ❤️ 1
    zhuangzhuang1988
        2
    zhuangzhuang1988  
       2015-11-25 23:25:17 +08:00
    提示:windows/system32 目录下可以使用 taskkill.exe tasklist.exe 这 2 个
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3804 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 10:20 · PVG 18:20 · LAX 03:20 · JFK 06:20
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.