后台运行bat定时器程序示例分享.pdfVIP

  • 1
  • 0
  • 约小于1千字
  • 约 1页
  • 2020-09-11 发布于天津
  • 举报
当我们要让 bat 处理程序在后台运行而不显示 doc 窗口时,可以避免程序被误关闭等情 况的发生。下面以一个简单的例子说明如何实现 新建一个 bat 处理文件,命名为 timer.bat ,代码如下: 代码如下 : @echo off :a rem 取得当前时分值 set currenttime=%time:~0,2%%time:~3,2% rem echo time :%currenttime% rem 调用程序的脚本: 资治通鉴经典故事 高清晰 pdf.pdf | start /b if %currenttime%==1856 (shutdown /s /t 60) goto :a pause 新建一个 vds 文件,命名为 autorun.vbs ,代码如下: 代码如下 : set ws=wscript.createobject(wscript.shell) ws.run j:\lanp\autorun\timer.bat /s

文档评论(0)

1亿VIP精品文档

相关文档