Results 1 to 10 of 10

Thread: timer control

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    timer control

    hi,
    i would like to create a program which calls another specific program every 5 mins.the calling program has to wait till the called program finsihes its operation.how can it poll to check if other program has completed its exceution?and after completetion of other program.......the calling program shud wait for 5 mins by means of a timer control and then call the program again........how can this be done?

    thnaks and regards
    vivek.s

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: timer control

    the exact code was posted just a week ago. search for it. I'm sure that it is easy to find.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Re: timer control

    hi,
    cud u gimme some tips for searching the frums?

    thanks and regards
    vivek.s

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Re: timer control

    hi

    i found this

    Code:
    SHELL "path\program.exe parm1 parm2"
    but i guess.........i need a different solution...a timer control as well.........how can i do it?

    Thanks and Regards
    vivek.s

  5. #5
    Frenzied Member David.Poundall's Avatar
    Join Date
    Sep 2002
    Location
    Robin Hood Land
    Posts
    1,457

    Re: timer control

    Justenter related text - say

    exe check

    in the search box. Browse the topic names that are returned. If you don't have a response that you can use within two pages - change the text and do another serach.

    Anyway. The article you may need is this one..

    Trying to make it 14 hours without sleep ????

    http://support.microsoft.com/default...b;en-us;187913
    David

    Learn the Rules so that you know how to break them properly.

    Printing dll dBTools MZTools Winsock API WinsockVB More Winsock SGrid2 MSChart Mail2Web

    If you have found this thread useful then read this

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: timer control

    Here's the one that I was referring to

    http://www.vbforums.com/showthread.p...ghlight=minute

  7. #7
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: timer control

    you can try to open the called program as binary with lock. if you can't open it, then it is in use.

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: timer control

    Why do you need to run a program every 5 minutes?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  9. #9
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: timer control

    Reminds me of McAfee poping up updates like almost every 5 minutes

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2004
    Posts
    681

    Re: timer control

    Hi,
    i am calling a vb exe from another vb program........once the called program has completed its execution , i have to call it again.....and when user presses stop button.......the execution should be stopped..........how can this be done without eating up memory?

    Thanks and Regards
    vivek.s

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