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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Using window service

Using window service

Scheduled Pinned Locked Moved Visual Basic
csharpquestiondotnetvisual-studio
4 Posts 3 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.
  • C Offline
    C Offline
    Code_Addict
    wrote on last edited by
    #1

    I am currently working on a program that will open on it’s own each day. I have tried using the task scheduler, but I keep getting: access is denied (0x80070005) I have looked in to creating a window service to accomplish this task. I have found a window service example that would make you system speaker beep every three seconds, that works fine. My question is how can I make a window service that will call a specific program Programming environment : Visual Basic (Visual Studio 2005 Pro) .Net Framework 2.0 SDK Can anyone out there help. Thanks in advance

    T D 2 Replies Last reply
    0
    • C Code_Addict

      I am currently working on a program that will open on it’s own each day. I have tried using the task scheduler, but I keep getting: access is denied (0x80070005) I have looked in to creating a window service to accomplish this task. I have found a window service example that would make you system speaker beep every three seconds, that works fine. My question is how can I make a window service that will call a specific program Programming environment : Visual Basic (Visual Studio 2005 Pro) .Net Framework 2.0 SDK Can anyone out there help. Thanks in advance

      T Offline
      T Offline
      Tom Deketelaere
      wrote on last edited by
      #2

      creating a service that calls a programme is probably not the best thing to do. since a service will start before the user logs in any calls to start a programme (wich requirs a user to be logged in) could result in some very strange behavior

      If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistaks.

      C 1 Reply Last reply
      0
      • T Tom Deketelaere

        creating a service that calls a programme is probably not the best thing to do. since a service will start before the user logs in any calls to start a programme (wich requirs a user to be logged in) could result in some very strange behavior

        If my help was helpfull let me know, if not let me know why. The only way we learn is by making mistaks.

        C Offline
        C Offline
        Code_Addict
        wrote on last edited by
        #3

        Thank you for your reply And it was helpful It may steer me in an easier way I am trying to launch the program so that I will see the messages that it will display. The program is for Prescriptions, when to reorder, and a reminder when to take pills If you would have any suggestions would be helpful Thanks again

        1 Reply Last reply
        0
        • C Code_Addict

          I am currently working on a program that will open on it’s own each day. I have tried using the task scheduler, but I keep getting: access is denied (0x80070005) I have looked in to creating a window service to accomplish this task. I have found a window service example that would make you system speaker beep every three seconds, that works fine. My question is how can I make a window service that will call a specific program Programming environment : Visual Basic (Visual Studio 2005 Pro) .Net Framework 2.0 SDK Can anyone out there help. Thanks in advance

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

          Code_Addict wrote:

          I have tried using the task scheduler, but I keep getting: access is denied (0x80070005)

          Access Denied usually means that the account you told the Scheduler to use to launch your app either is the wrong username or you gave it the wrong password, or both. The Scheduler uses that account information to launch your app under those credentials.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          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