V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
c517718004
V2EX  ›  问与答

bat 脚本求教

  •  
  •   c517718004 · 2017-04-30 16:46:30 +08:00 · 1046 次点击
    这是一个创建于 2722 天前的主题,其中的信息可能已经有所发展或是发生改变。

    set _php_file="e:\webroot\cms\redis.php"

    setlocal enabledelayedexpansion

    下面这个可以正确执行

    wmic process where name="php.exe" get processId,commandLine

    修改成报错

    for /f "tokens=1,2" %%a in ('wmic process where name="php.exe" get commandLine^,processId ^| findstr /i %_php_file%') do (

    echo %%a
    
    echo %%a>>%~dp0keep.txt
    

    )

    需要如何修改

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   936 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 20:25 · PVG 04:25 · LAX 13:25 · JFK 16:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.