Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to execute other programs at the given time?

How to execute other programs at the given time?

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelptutorial
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fantasy1215
    wrote on last edited by
    #1

    I hope I can express the question with my poor english. I wanna write a dialog based program, and let user to set the time and at the given time, execute other programs(the user gives the exe file path). Can give some code hint or source code like this? Or a program in sourceforge having such function issue.

    C H 2 Replies Last reply
    0
    • F fantasy1215

      I hope I can express the question with my poor english. I wanna write a dialog based program, and let user to set the time and at the given time, execute other programs(the user gives the exe file path). Can give some code hint or source code like this? Or a program in sourceforge having such function issue.

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #2

      Why don't you use Windows's Scheduled Tasks (see, for instance [^])? :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      F 1 Reply Last reply
      0
      • C CPallini

        Why don't you use Windows's Scheduled Tasks (see, for instance [^])? :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        F Offline
        F Offline
        fantasy1215
        wrote on last edited by
        #3

        I need implement this function in my program.

        C S 2 Replies Last reply
        0
        • F fantasy1215

          I need implement this function in my program.

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #4

          Well, you application may create enties for the windows scheduler, se, for instance [^]. It is IMHO the cleanest way. [added] Try also to use CodeProject's article search engine [^], it's free... :rolleyes: [/added] :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
          [My articles]

          modified on Thursday, February 5, 2009 8:54 AM

          1 Reply Last reply
          0
          • F fantasy1215

            I need implement this function in my program.

            S Offline
            S Offline
            Stuart Dootson
            wrote on last edited by
            #5

            Task scheduler[^]? That's the API behind Windows Scheduled Tasks. You're much better off using facilities built into the OS than coding an equivalent yourself.

            1 Reply Last reply
            0
            • F fantasy1215

              I hope I can express the question with my poor english. I wanna write a dialog based program, and let user to set the time and at the given time, execute other programs(the user gives the exe file path). Can give some code hint or source code like this? Or a program in sourceforge having such function issue.

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              Do you need to Basic class for using the Microsoft Task Scheduler[^]?

              Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups