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.
May 26, 2005
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
You May Also Like