JSI Tip 9390. How can I launch a process to run hidden?

Jerold Schulman

May 26, 2005

1 Min Read
ITPro Today logo in a gray background | ITPro Today


I have scripted RunHidden.vbs to launch a hidden process.

The syntax for using RunHidden.vbs is:

cscript Drive:FolderXRunHidden.vbs Drive:FolderYExecutable_Image.Executable_Extension [Param1 Parma2 ... ParamN]Where:Drive:FolderXRunHidden.vbs is the fully qualified path to RunHidden.vbs.Drive:FolderYExecutable_Image.Executable_Extension is the fully qualified path to the executable, like program.exe or MyScript.bat.ParamX are any number of optional switches / parameters for Drive:FolderYExecutable_Image.Executable_Extension.

NOTE: You can launch RunHidden.vbs from a CMD.EXE window or from Start / Run.

RunHidden.vbs contains:

dim argSet WshShell = WScript.CreateObject("WScript.Shell")Set objArgs = WScript.Argumentsarg=objArgs(0)Set objArgs = WScript.ArgumentsFor I = 1 to objArgs.Count - 1   arg = arg & " " & objArgs(I)NextReturn = WshShell.Run(arg, 0, False)set WshShell = Nothing



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like