计划任务执行bat
2017-11-06 15:41
190 查看
@echo off
taskkill /f /t /im ControlKJmen.exe
taskkill /f /t /im KJMen.exe
taskkill /f /t /im DisplayLog.exe
taskkill /f /t /im CatchPackage.exe
set "str=E:\auto tool\ke.qq.com"
start "" "%str%\DisplayLog.exe"
start "" "%str%\run.exe"
记得加上引号,具体还不知道为什么要加
加引号的原因如下:
由于start将第一个双引号中的内容当成标题,所以先要加一对空引号,将文件名放在第二个双引号内,因为路径有空格必须要加双引号,没有的话应该是不用加的
from:https://zhidao.baidu.com/question/518672846701533885.html
from:http://www.bathome.net/thread-15076-1-1.html
taskkill /f /t /im ControlKJmen.exe
taskkill /f /t /im KJMen.exe
taskkill /f /t /im DisplayLog.exe
taskkill /f /t /im CatchPackage.exe
set "str=E:\auto tool\ke.qq.com"
start "" "%str%\DisplayLog.exe"
start "" "%str%\run.exe"
记得加上引号,具体还不知道为什么要加
加引号的原因如下:
由于start将第一个双引号中的内容当成标题,所以先要加一对空引号,将文件名放在第二个双引号内,因为路径有空格必须要加双引号,没有的话应该是不用加的
from:https://zhidao.baidu.com/question/518672846701533885.html
from:http://www.bathome.net/thread-15076-1-1.html
相关文章推荐
- windows 任务计划程序执行 bat ,重启服务
- Windows Server 2008通过计划任务定时执行bat文件
- [BAT]批处理脚本双击可运行,但在定时计划任务中无法执行(当前工作路径不对导致的)
- 在Windows server 2008下计划任务无法正常执行bat批处理文件的问题
- 【定时任务|开机启动】Windows Server 2008/2012 计划任务配置(任务计划程序)每分钟执行BAT
- 【定时任务】Windows Server 2008/2012 计划任务配置(任务计划程序)每分钟执行BAT php
- 【定时任务|开机启动】Windows Server 2008/2012 计划任务配置(任务计划程序)每分钟执行BAT
- Windows Server 2008通过计划任务定时执行bat文件
- Windows Server 2008通过计划任务定时执行bat文件
- win2008 计划任务配置(任务计划程序)每分钟执行BAT
- Windows Server 2012计划任务定时执行bat文件
- 计划任务执行copy动作的bat文件设置要点
- win2008通过计划任务定时执行bat文件
- Windows Server 2008中使用计划任务定时执行BAT批处理文件图文教程
- Windows Server 2008 计划任务配置(任务计划程序)每分钟执行BAT
- windows自动任务计划执行批处理文件(.bat)报错DNS服务器对区域没有权威
- Windows Server 2008中使用计划任务定时执行BAT批处理文件图文教程
- 【定时任务|开机启动】Windows Server 2008/2012 计划任务配置(任务计划程序)每分钟执行BAT
- Windows Server 2008 计划任务配置(任务计划程序)每分钟执行BAT
- 在Windows server 2008下计划任务无法正常执行bat批处理文件的问题