VBS(非网络开发):如何启动隐藏的窗口? [英] VBS (non-webdeveloping): How to start a window hidden?

查看:19
本文介绍了VBS(非网络开发):如何启动隐藏的窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个关于 VBS 的问题:如何启动一个隐藏的新窗口(例如 firefox.exe),这样它就不会显示在任务栏中并且您也不会看到该窗口?我知道这是可能的,但我不知道怎么办...

Have a question about VBS: How can i start a new window (e.g. of firefox.exe) hidden, so it won't be shown in taskbar and you won't see the window? I know its possible but I don't know how anymore...

感谢帮助

推荐答案

使用 WshShell.Run 方法,intWindowStyle 参数设置为 0:

Use the WshShell.Run method with the intWindowStyle parameter set to 0:

Set oShell = CreateObject("WScript.Shell")
oShell.Run "notepad", 0

这篇关于VBS(非网络开发):如何启动隐藏的窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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