How can I know when a program fully loaded?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How can I know when a program fully loaded?

  1. #1
    Join Date
    Feb 2006
    Posts
    2

    How can I know when a program fully loaded?

    I am currently working on a Bot that will basically remove viruses and spyware from computers. I want this Bot to open for example SpyBot, Scan, Remove Viruses and then Close. I can open Spybot but I do not know how to make my program know when it fully loaded or complete its job so I can do the next thing. Is there a way to know when a program finished doing something such as finished scanning or finished loading?

    Thanks in advance

  2. #2
    Join Date
    Feb 2006
    Location
    Cologne - Germany
    Posts
    271
    only if the given programm supports it.
    on the other hand, you could poll the file as long until it becomes readable.
    usually when another programm opens a file, you cannot open it in another application. so if you retry to open the file until you can read it, that means the other programm has finished using that file.
    if you trigger the external programm within your own java code, you also can just wait, until the external programm returns, what means it has finished.

Similar Threads

  1. Help with a program
    By stormswimmer in forum Java
    Replies: 2
    Last Post: 01-02-2006, 03:17 PM
  2. Please help with running executable vb program.
    By Gordon Reichhardt in forum VB Classic
    Replies: 2
    Last Post: 01-08-2002, 10:06 AM
  3. How can I build copy protection into my program
    By W.Pierce in forum VB Classic
    Replies: 1
    Last Post: 12-11-2001, 08:28 AM
  4. .NET and DLL ****
    By Willy Van den Driessche in forum .NET
    Replies: 2
    Last Post: 10-28-2001, 05:25 PM
  5. Replies: 0
    Last Post: 12-15-2000, 10:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center