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. Timers(?)

Timers(?)

Scheduled Pinned Locked Moved Visual Basic
helpquestion
6 Posts 2 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.
  • S Offline
    S Offline
    Stacy Springer
    wrote on last edited by
    #1

    Any suggestions on using a timer to check for a backup log's existence at a certain time every day? Is there some other function I should be using instead of Timer? Newbie needs help. Thanks! :confused: Stacy

    D 1 Reply Last reply
    0
    • S Stacy Springer

      Any suggestions on using a timer to check for a backup log's existence at a certain time every day? Is there some other function I should be using instead of Timer? Newbie needs help. Thanks! :confused: Stacy

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

      At a certain time every day? Doesn't sound like a job for a Timer. Sounds more like using the Scheduled Task control panel. Then your app wouldn't have to bother with the time or a countdown timer. RageInTheMachine9532

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        At a certain time every day? Doesn't sound like a job for a Timer. Sounds more like using the Scheduled Task control panel. Then your app wouldn't have to bother with the time or a countdown timer. RageInTheMachine9532

        S Offline
        S Offline
        Stacy Springer
        wrote on last edited by
        #3

        Can I create a scheduled task programatically? This was written as a service. Thanks! Stacy Springer

        D 1 Reply Last reply
        0
        • S Stacy Springer

          Can I create a scheduled task programatically? This was written as a service. Thanks! Stacy Springer

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

          If it was written as a Service, then you can't launch it with the Scheduler. What does this thing do? Why the service? RageInTheMachine9532

          S 1 Reply Last reply
          0
          • D Dave Kreskowiak

            If it was written as a Service, then you can't launch it with the Scheduler. What does this thing do? Why the service? RageInTheMachine9532

            S Offline
            S Offline
            Stacy Springer
            wrote on last edited by
            #5

            The service was designed to access a network drive once a day and verify that a certain backup file exists and that the size is greater than 500MB. If the file is there and meets the size requirement it sends an email to several people letting them know the backup was successful, else it sends an email indicating backup failure. I wrote it as a service to ensure it would run without user intervention and whether or not a individual was logged into the server it is running on. This has been my first project and a good learning experience. I appreciate any advice you have to offer. Thanks! :) Stacy

            D 1 Reply Last reply
            0
            • S Stacy Springer

              The service was designed to access a network drive once a day and verify that a certain backup file exists and that the size is greater than 500MB. If the file is there and meets the size requirement it sends an email to several people letting them know the backup was successful, else it sends an email indicating backup failure. I wrote it as a service to ensure it would run without user intervention and whether or not a individual was logged into the server it is running on. This has been my first project and a good learning experience. I appreciate any advice you have to offer. Thanks! :) Stacy

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

              Well, if you want to keep it as a service, then you would have to use a Timer to wake up every so often, poll the system for the time, then see if it is time for the service to do its job. Configuration might be done in an .INI file, for time to wake up and do its job, then restart the service. RageInTheMachine9532

              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