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. Visual Basic
  4. Scheduled Task

Scheduled Task

Scheduled Pinned Locked Moved Visual Basic
csharphelptutorial
7 Posts 6 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.
  • K Offline
    K Offline
    Kumaran21cen
    wrote on last edited by
    #1

    Everyday at 6.00 P.M. I want to send the Details through E-Mail. I written the program for sending email. But, i don't know how to scheduled the program. I want to send the details everday at 6.00 P.M. Using VB.NET, but not windows task scheduler. Kindly i am awaiting for the experts help.

    Thanks & Regards Kumaran

    I D S 3 Replies Last reply
    0
    • K Kumaran21cen

      Everyday at 6.00 P.M. I want to send the Details through E-Mail. I written the program for sending email. But, i don't know how to scheduled the program. I want to send the details everday at 6.00 P.M. Using VB.NET, but not windows task scheduler. Kindly i am awaiting for the experts help.

      Thanks & Regards Kumaran

      I Offline
      I Offline
      iprasad007
      wrote on last edited by
      #2

      Create a windows service with a system timer control, which will trigger your email sending procedure at 6 PM. Following are some good links for your easy reference MSDN: http://msdn.microsoft.com/msdnmag/issues/01/12/NETServ/ One At CodeProject itself http://www.codeproject.com/vb/net/Windows\_Services.asp

      T J 2 Replies Last reply
      0
      • I iprasad007

        Create a windows service with a system timer control, which will trigger your email sending procedure at 6 PM. Following are some good links for your easy reference MSDN: http://msdn.microsoft.com/msdnmag/issues/01/12/NETServ/ One At CodeProject itself http://www.codeproject.com/vb/net/Windows\_Services.asp

        T Offline
        T Offline
        the bombardier
        wrote on last edited by
        #3

        use google..ul easily find the solution..

        1 Reply Last reply
        0
        • K Kumaran21cen

          Everyday at 6.00 P.M. I want to send the Details through E-Mail. I written the program for sending email. But, i don't know how to scheduled the program. I want to send the details everday at 6.00 P.M. Using VB.NET, but not windows task scheduler. Kindly i am awaiting for the experts help.

          Thanks & Regards Kumaran

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Kumaran 21st Century wrote:

          but not windows task scheduler

          Kind of odd considering that's exactly what the Scheduler is for... Your app with then have to be running 24 hours a day. This would probably require you to write your code as a Windows service. Your app would create a Threading Timer, NOT a Form's based Timer. Set it for 60 seconds. When the timer wakes your code up, just check the current time against the scheduled time, hour and minutes only, not seconds. When the two match, fire off your email code. Or, you could skip the service crap and keep your code simple by not worrying about the timer. You've probably got it mostly written already. Then all you have to do is setup the launch job in the Windows Scheduler.

          Dave Kreskowiak Microsoft MVP - Visual Basic

          J 1 Reply Last reply
          0
          • D Dave Kreskowiak

            Kumaran 21st Century wrote:

            but not windows task scheduler

            Kind of odd considering that's exactly what the Scheduler is for... Your app with then have to be running 24 hours a day. This would probably require you to write your code as a Windows service. Your app would create a Threading Timer, NOT a Form's based Timer. Set it for 60 seconds. When the timer wakes your code up, just check the current time against the scheduled time, hour and minutes only, not seconds. When the two match, fire off your email code. Or, you could skip the service crap and keep your code simple by not worrying about the timer. You've probably got it mostly written already. Then all you have to do is setup the launch job in the Windows Scheduler.

            Dave Kreskowiak Microsoft MVP - Visual Basic

            J Offline
            J Offline
            Jason McBurney
            wrote on last edited by
            #5

            Dave Kreskowiak wrote:

            Or, you could skip the service crap and keep your code simple by not worrying about the timer. You've probably got it mostly written already. Then all you have to do is setup the launch job in the Windows Scheduler.

            I second that.

            You can only be young once. But you can always be immature. - Dave Barry

            1 Reply Last reply
            0
            • I iprasad007

              Create a windows service with a system timer control, which will trigger your email sending procedure at 6 PM. Following are some good links for your easy reference MSDN: http://msdn.microsoft.com/msdnmag/issues/01/12/NETServ/ One At CodeProject itself http://www.codeproject.com/vb/net/Windows\_Services.asp

              J Offline
              J Offline
              Jason McBurney
              wrote on last edited by
              #6

              Clickity Police http://msdn.microsoft.com/msdnmag/issues/01/12/NETServ/[^] http://www.codeproject.com/vb/net/Windows_Services.asp[^]

              You can only be young once. But you can always be immature. - Dave Barry

              1 Reply Last reply
              0
              • K Kumaran21cen

                Everyday at 6.00 P.M. I want to send the Details through E-Mail. I written the program for sending email. But, i don't know how to scheduled the program. I want to send the details everday at 6.00 P.M. Using VB.NET, but not windows task scheduler. Kindly i am awaiting for the experts help.

                Thanks & Regards Kumaran

                S Offline
                S Offline
                Steven J Jowett
                wrote on last edited by
                #7

                Kumaran 21st Century wrote:

                I want to send the details everday at 6.00 P.M. Using VB.NET, but not windows task scheduler.

                I've never understood why anyone would want to reinvent the wheel

                Steve Jowett

                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