简体   繁体   English

隐藏批处理文件的CMD窗口

[英]Hide CMD Window for Batch File

I am using a batch file that, when clicked, opens a application after 10 seconds. 我正在使用一个批处理文件,单击该批处理文件将在10秒后打开一个应用程序。 Everything works fine but when I first click it the command prompt window comes up and sits there until the application opens. 一切正常,但是当我第一次单击它时,命令提示符窗口出现并停在那里,直到应用程序打开。 I do not want this; 我不想这样; I want it to run in the background. 我希望它在后台运行。

Here is my code 这是我的代码

@echo off
rem sleeping for 10000 milliseconds (10 seconds)
ping -n 1 -w 10000 -4 10.0.0.0 >NUL

rem starting delayed start programs
start "" "C:\Program Files (x86)\WinSCP\WinSCP.exe"

Any ideas on how to keep that window from coming up? 关于如何阻止该窗口出现的任何想法?

Use vbscript. 使用vbscript。 I'd include the code here but there are a lot of pages that cover this. 我将在此处包括代码,但是有很多页面对此进行了介绍。 Here's one: https://superuser.com/questions/62525/run-a-batch-file-in-a-completely-hidden-way 这是一个: https : //superuser.com/questions/62525/run-a-batch-file-in-a-completely-hidden-way

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM