How about this?
$backup_process = get-process ntbackup
$backup_process.waitforexit()
--
Rob Pettrey
Microsoft Small Business Specialist
"Cookiecutter" wrote:
| Quote: |  | |
|
> Wow, it IS really that simple. Thank you kind sir.
>
> "Keith Hill [MVP]" wrote:
> | Quote: |  | | |
> > "Cookiecutter" <Cookiecutter@xxxxxx> wrote in message
> > news:96C337E8-A68D-42B7-B500-C31323F97150@xxxxxx | Quote: |  | | |
> > > Okay, so looking down 6 lines, I see that someone asked about running
> > > external commands. Sorry, I guess I just suck at searching also :-(.
> > >
> > > I'll use the Diagnostics.Proces objects as indicated in that thread for my
> > > purpose but can anyone tell me if this will add unecessary time to my
> > > measurements?
> > >
| | | | | > >
> > Another way is to just pipe the output to out-null e.g.:
> >
> > PS> notepad | out-null
> >
> > --
> > Keith
> > | | | | | | |
| | |