CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2001
    Posts
    22

    VBScript, asynchronous or not?

    Can anyone tell me whether VBScript is asynchronous or not? The reason for asking is because I have a script that gathers the number of alerts logged in the Windows event logs and adds it to a db table. Although this has worked perfectly in the past I started noticing entries in the db of zero when I knew there were alerts logged. After investigating further, it turned out that the query to event log took over an hour to return the number of events due to the sheer number. So, could my zero entries be due to the script not waiting for the result from the event log?


    Thanks

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: VBScript, asynchronous or not?

    Asyncronous in regards to what?
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    May 2001
    Posts
    22

    Re: VBScript, asynchronous or not?

    I have a script that queries Windows using the WMI tool. As part of the script it queries the Win32 database. Will the script execute the query and wait for the reply before moving on to the next line of code is the question I am asking.

    Thanks

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: VBScript, asynchronous or not?

    Quote Originally Posted by Qatester
    ...Will the script execute the query and wait for the reply before moving on to the next line of code...
    Yes. That is part of a query.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured