在后台运行批处理文件 [英] run bat file in background

查看:103
本文介绍了在后台运行批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在后台运行一个批处理文件。我在谷歌搜索,我发现使用HSTART和cmdow一些例子。但无论如何不带窗户的命令来做到这一点?我真的FEAL很好,当我没有多余的程序添加到我的项目!
thanx提前

I want to run a bat file in background. I searched in google and I found some examples using hstart and cmdow. But Isn't anyway to do this with windows commands? I really feal good when I don't add extra programs to my project ! thanx in advance

推荐答案

我使用的窗口调度。我找到了一个方法:

I'm using window scheduler. I found a way :

保存文字这一行的文件invisible.vbs:

Save this one line of text as file invisible.vbs:

CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

要隐形运行任何程序或批处理文件,使用这样的:

To run any program or batch file invisibly, use it like this:

wscript.exe "C:\Wherever\invisible.vbs" "C:\Some Other Place\MyBatchFile.bat"

感谢名单

这篇关于在后台运行批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆