View Single Post
Old 05-14-2008   #3 (permalink)
Keith Hill [MVP]


 
 

Re: Running an external process asynchronously

"Romu" <Romu@xxxxxx> wrote in message
news:26878AEF-39AC-412F-96A3-5BB7775BC0B0@xxxxxx
Quote:

> Hi all,
> All the question is in the title;
>
> I need to run an external process from my powershell script
> asynchronously,
> I want powershell to continue my script execution as soon as this process
> is
> started.
>
> Any idea?
>
If you are willing to give the PowerShell Community Extensions a try, you
can use Start-Process like so:

foo.ps1
--------
echo "Before"
Start-Process csc.exe -arg '/?' -noshellexecute
echo "!!!!! After !!!!!"

--
Keith Hill
http://www.codeplex.com/powershellcx

My System SpecsSystem Spec