Launch a Program Hidden

From TheAlmightyGuru
Revision as of 11:07, 31 August 2017 by TheAlmightyGuru (talk | contribs) (Created page with "'''''Launch a Program Hidden''''' is a JScript program that will launch a specified program hidden in Windows. The program will still show up in the Processes tab in Task...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Launch a Program Hidden is a JScript program that will launch a specified program hidden in Windows. The program will still show up in the Processes tab in Task Manager, but it will not show in the Applications tab, on the Start bar, or in the alt+tab list. This script is useful for running diagnostic programs that you don't want cluttering up the desktop or inadvertently closed by an inexperienced user.

Source

// Copyright 2017, Dean Tersigni.
// For the run method:
// Parameter 1: The path to the program and any parameters.
// Parameter 2: What window state to use: 0 = hidden, 1 = normal, etc.
// Parameter 3: Flag to wait until program finishes before ending script.

var oWSH = new ActiveXObject( "WScript.Shell" );
oWSH.run( '"C:\\Program Files (x86)\\IPS\\ScanItParts\\SettingsTest.exe"', 0, false );