Loading ...
Sorry, an error occurred while loading the content.

Re: [libertybasic] wait to continue with basic until RUN an external programm is finished

Expand Messages
  • Vance E. Neff
    Here is one approach (check once a second) external.exe creates a file run external.exe , hide while not(check with files if file exists and size 0) TIMER
    Message 1 of 3 , Sep 30, 2007
    • 0 Attachment
      Here is one approach (check once a second)

      'external.exe creates a file
      run "external.exe", hide
      while not(check with files if file exists and size>0)
      TIMER 1000,[CheckAgain]
      wait
      [CheckAgain]
      wend


      Vance

      georgbaum wrote:

      >I have a command line programm which I start with RUN inside the code.
      >The command line programm creates a file, that I want to read
      >afterwards into my basic programme.
      > ...
      > 'external.exe creates a file
      > run "external.exe", hide
      > while not(check with files if file exists and size>0)
      > wend
      > ...
      >My impression is that the check takes 100% processor time. That means,
      >that the external has not much processor time left and runs very slow!
      >
      >Has someone a good idea how to let the basic programme wait until my
      >external programme is finished? Tahnks!
      >
      >
      >
      >
      >
      >
      >Yahoo! Groups Links
      >
      >
      >
      >
      >
      >
      >
    • Stefan Pendl
      ... Go to http://alycesrestaurant.com and check out the shell wait demo in the code section. ... Stefan Pendl
      Message 2 of 3 , Oct 1, 2007
      • 0 Attachment
        >
        > I have a command line programm which I start with RUN inside the code.
        > The command line programm creates a file, that I want to read
        > afterwards into my basic programme.
        > ...
        > 'external.exe creates a file
        > run "external.exe", hide
        > while not(check with files if file exists and size>0)
        > wend
        > ...
        > My impression is that the check takes 100% processor time.
        > That means,
        > that the external has not much processor time left and runs very slow!
        >

        Go to http://alycesrestaurant.com and check out the shell wait demo in the
        code section.

        ---
        Stefan Pendl
      Your message has been successfully submitted and would be delivered to recipients shortly.