Showing results for processes - Scripting Blog [archived]

Mar 27, 2007
0
0

How Can I Use Windows PowerShell to Be Notified When an Application Terminates?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! We have an in-house application that, unfortunately, crashes a lot; when that happens we have to go through a lengthy procedure to restart the program. Using Windows PowerShell, is there any way I can be notified when this application crashes?-- OI Hey, OI. You know, at first we thoughts to ourselves, we thought, “Hey, we ain...

Scripting Guy!Windows PowerShelloperating system
Dec 8, 2006
0
0

How Can I Start a Process and Then Wait For the Process to End Before Terminating the Script?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I start a process and then wait until that process quits before terminating the script?-- FG Hey, FG. Before we answer your question, the Scripting Guy who writes this column has a confession to make: he’s the one who ruined Christmas for everyone. Not that he meant to, mind you, but that doesn’t matter; all that matter...

Scripting Guy!scripting techniquesVBScript
Jul 28, 2006
0
0

How Can I Get the Process ID for an Executable File, But Only If the Process Has a Specified Owner?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I get the process ID for a file like MyExecutableFile.exe, but only if a certain user is the owner of that process?-- SC Hey, SC. You know, here at Microsoft ownership is very important; for example, when you sit down to discuss joint projects with people the very first question that comes up is this: who actually own...

Scripting Guy!VBScriptoperating system
Jun 1, 2006
0
0

How Can I Find the Process ID Associated with a Batch File?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I find the process ID associated with a batch file?-- MB Hey, MB. You know, the Scripting Guys are firm believers in recycling. Why throw that printout away when it can be recycled into newsprint? Why throw that aluminum can away when it can be melted down and reused? Why throw away that Hey, Scripting Guy! column whe...

Scripting Guy!VBScriptoperating system
Mar 13, 2006
0
0

How Can I Write Output to the Screen that Overwrites Whatever is Currently on the Screen?

ScriptingGuy1
ScriptingGuy1

Hey, Scripting Guy! How can I write output to the screen that overwrites whatever is currently on the screen?-- KM Hey, KM. If you specifically need to write your output to the command window, well, then we don’t have an answer for you: although we played around with a few things, we never found an easy, straightforward way to overwrite informat...

Scripting Guy!VBScriptoperating system