我怎样才能运行.bat文件时隐藏MS-DOS窗口? [英] How can I hide ms-dos window when running a .bat file?
本文介绍了我怎样才能运行.bat文件时隐藏MS-DOS窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在每分钟我的脚本.bat文件(预定德(的cronjob))。
当它运行时,Windows命令一段虚构提示。
I am running a .bat file for my script (Scheduled Tak (CronJob)) per minute. When it runs, windows command prompt appears for a fiction of time.
我的批处理code这样的;
My batch code like this;
@ECHO OFF
C:\wamp\bin\php\php5.4.3\php.exe -f "C:\wamp\www\tst\index.php"
如何隐藏,当它运行这个窗口?
How can I hide this window when it run?
推荐答案
使用一个VBScript
Use a VBScript
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run("C:\yourbatch.bat"), 0, True
运行的,将运行批处理文件隐藏。
Run that which will run your batch file hidden.
这篇关于我怎样才能运行.bat文件时隐藏MS-DOS窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文