Then you need to do your own wait loop, something like:

Dim hProcess As Process

hProcess = Shell sYourCommand

Do
  Wait 0.1
Loop Until hProcess.State <> Process.Running


Jussi



On Tue, Jan 31, 2012 at 12:02, John Rose <john.aaron.r...@gmail.com> wrote:

> I was not trying to blame you earlier: I was trying to say that it was
> my fault for not communicating my requirements accurately to you. I have
> read the documentation on both the Shell & Exec commands a number of
> times.
>
> Using the first form of the Shell command without 'To sOutput' results
> in the get_iplayer command executing (i.e. the relevant video file is
> downloaded from the BBC's iPlayer website) but it happens in the
> background i.e. the Gambas app carries on with the following (i.e. after
> Shell) commands: which is not what I want (i.e. I want it to wait till
> all of the video file is downloaded). So the obvious solution to that is
> to use the Wait parameter i.e. the command becomes
> 'Shell sInstruction Wait'. However, this also leads to the blank FMain
> window.
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to