Because Sometimes We Need To Wait For A Windows App

| | Comments (0) | TrackBacks (0)
function invokeWithWait-application
{
  param([string]$command = $(throw "USAGE: invokeWithWait-application -Command co
mmand [-Arguments arguments]"),
        [string]$arguments = "”)

  $np = [System.Diagnostics.Process]::Start ($command, $arguments)
  $np.WaitForExit()
  $np.ExitCode;$np.ExitTime;$np
}

Categories

0 TrackBacks

Listed below are links to blogs that reference this entry: Because Sometimes We Need To Wait For A Windows App.

TrackBack URL for this entry: http://weblog.siliconcerebrate.com/mt/mt-tb.cgi/273

Leave a comment

About this Entry

This page contains a single entry by The Cerebrate published on February 9, 2006 4:13 PM.

Is "Old Europe" Doomed? was the previous entry in this blog.

From the Scobleizer is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Technorati

Technorati search

» Blogs that link here

Amazon Honor System

Amazon Honor System Click Here to Pay Learn More

Advertisements

LibraryThing

Amazon.com

Recent Comments

By E-mail

Enter your email address:

Delivered by FeedBurner

Powered by Movable Type 4.21-en