Scheduling using C# Windows application

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • akingsly
    New Member
    • Sep 2008
    • 5

    #1

    Scheduling using C# Windows application

    Hai,
    I was new to this topic and I want to start a windows service in .net windows application. On particular time note pad should be get opened. And so I want to schedule that. Can any one help me regarding this.


    Thanku
    akingsly
  • adityakoppolu
    New Member
    • Sep 2008
    • 17

    #2
    Follow this link as given "http://www.aspfree.com/c/a/C-Sharp/Timer-Objects-in-Windows-Services-with-C-sharp-dot-NET/1/"

    It has a lesson o f 5 pages.

    This is for 2003 version in 2005 slight diff is there.

    after reading above lesson do like this.

    First do directlt with out any modifing service. Do as it with service1 only.
    Change servicetype from manually to automatic.
    Just add the code in program1. for creating file and as well as in service1 for timer same as mentioned in lesson.

    and follow the remaining steps for installation.

    Comment

    • akingsly
      New Member
      • Sep 2008
      • 5

      #3
      Thanku for u r reply.
      One more issue. I tried this as it was given and I'm getting one error.

      Here the file is not creating and the following error message is displaying.

      The TimeServive(Ser vice name) on Local Computer Started And Then stopped. Some Services stop Automatically if they have no work to do, for example , the performance logs and alerts service.

      Can u pls tell me why it's happening.

      thanku
      akinglsy

      Comment

      • akingsly
        New Member
        • Sep 2008
        • 5

        #4
        Ok fine, a file was created. Now I want to open that created file at a particular time when the service is started.

        Can u pls help me.

        Thanks
        akingsly

        Comment

        • PRR
          Recognized Expert Contributor
          • Dec 2007
          • 750

          #5
          Originally posted by akingsly
          Hai,
          I was new to this topic and I want to start a windows service in .net windows application. On particular time note pad should be get opened. And so I want to schedule that. Can any one help me regarding this.
          Thanku
          akingsly
          windows service run in their own session... they do not and should not interact with GUI...(normally ) You can write to log files and do other processing with windows service...i dint understand this :
          note pad should be get opened ??
          should it be opened in GUI? or just you want to write a log to it..

          Comment

          • akingsly
            New Member
            • Sep 2008
            • 5

            #6
            Originally posted by dirtbag
            windows service run in their own session... they do not and should not interact with GUI...(normally ) You can write to log files and do other processing with windows service...i dint understand this :
            note pad should be get opened ??
            should it be opened in GUI? or just you want to write a log to it..
            Thanku for u r information.

            I want to write a log file to it and a notepad.exe should open at a particular given time when the service is started

            akingsly

            Comment

            • PRR
              Recognized Expert Contributor
              • Dec 2007
              • 750

              #7
              Originally posted by akingsly
              Thanku for u r information.

              I want to write a log file to it and a notepad.exe should open at a particular given time when the service is started

              akingsly
              it will be open... but wont be visible to the "logged in" user,assuming theres a user logged in (he wont see the notepad on his screen)... as its in a different session... if you look into task manager .. you will find notepad.exe running....you can log info into it n save it.....

              Comment

              Working...