Results 1 to 5 of 5

Thread: Schedule job in VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2007
    Posts
    1

    Schedule job in VB

    hi ,
    how can i create a schedule job in VB , which can check a particular file whether it is running or not and if not then execute that file. please help me in this regard.

    thanks in advance
    Deepak

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Schedule job in VB

    Did you write the program you want running?
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3
    Lively Member
    Join Date
    Nov 2006
    Location
    San Pedro, CA
    Posts
    104

    Re: Schedule job in VB

    The easiest way is to use Windows Task Scheduler. It's in Win2k3 Server, tho...

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Schedule job in VB

    Task Scheduler won't check to see if the program is already running, though. If he has access to the source for the program he can just have it exit if a previous instance is running. Then TS, or a similar program writtenin VB, would be a usable solution.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  5. #5
    Lively Member
    Join Date
    Nov 2006
    Location
    San Pedro, CA
    Posts
    104

    Re: Schedule job in VB

    yea, I just noticed that.

    There is the App.PrevInstance function, but I am not sure how one would capture an exe of another name.

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