Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VBS (non-webdeveloping): How to start a window hidden?

Tags:

vbscript

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...

thanks for help

like image 666
Florian Müller Avatar asked Dec 18 '25 17:12

Florian Müller


1 Answers

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

Set oShell = CreateObject("WScript.Shell")
oShell.Run "notepad", 0
like image 166
Helen Avatar answered Dec 24 '25 08:12

Helen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!