Home » Questions » Computers [ Ask a new question ]

Is it possible to create a shortcut to a Window console app that starts hidden?

Is it possible to create a shortcut to a Window console app that starts hidden?

I'd like to start a console app upon startup, but I'd like it not to clutter the taskbar with a cmd.exe item. The options I have when editing a shortcut are only "Normal window", "Minimized", and "Maximized". I faintly remember some Windows version having "Hidden" as an option. I'm using Windows 2008.

Asked by: Guest | Views: 42
Total answers/comments: 2
Guest [Entry]

I've had this problem too, I wrote a small app that does this: http://miffthefox.googlepages.com/silentcmd.
Guest [Entry]

"According to this page from the MSDN setting intWindowStyle (one of the arguments to WScript.Shell.Run) to 0

Hides the window and activates another window.

Though it also states:

intWindowStyle
Optional. Integer value indicating the appearance of the
program's window. Note that not all
programs make use of this information."