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#
  4. Scheduled command line application

Scheduled command line application

Scheduled Pinned Locked Moved C#
helpquestion
4 Posts 4 Posters 1 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.
  • W Offline
    W Offline
    weywe47k37
    wrote on last edited by
    #1

    Hi, I've written a command line application that I need to run every couple of minutes. I've used the Windows Task Scheduler as a quick and easy way of calling the application but the problem is that the window is displayed every time the application is called. Is there any way of telling the Windows Task Scheduler not to display the window or can I change my application so it does not show a window as it's executing? Thanks :)

    C T J 3 Replies Last reply
    0
    • W weywe47k37

      Hi, I've written a command line application that I need to run every couple of minutes. I've used the Windows Task Scheduler as a quick and easy way of calling the application but the problem is that the window is displayed every time the application is called. Is there any way of telling the Windows Task Scheduler not to display the window or can I change my application so it does not show a window as it's executing? Thanks :)

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

      weywe47k37 wrote:

      Is there any way of telling the Windows Task Scheduler not to display the window

      I don't know, but I think it is not possible.

      weywe47k37 wrote:

      or can I change my application so it does not show a window as it's executing?

      You can do that, but probably not with a console application. :)

      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.

      1 Reply Last reply
      0
      • W weywe47k37

        Hi, I've written a command line application that I need to run every couple of minutes. I've used the Windows Task Scheduler as a quick and easy way of calling the application but the problem is that the window is displayed every time the application is called. Is there any way of telling the Windows Task Scheduler not to display the window or can I change my application so it does not show a window as it's executing? Thanks :)

        T Offline
        T Offline
        thowra
        wrote on last edited by
        #3

        Rewrite it as a Windows service if it won't need user interaction.

        Evil cannot be conquered in the world... It can only be resisted within oneself.

        1 Reply Last reply
        0
        • W weywe47k37

          Hi, I've written a command line application that I need to run every couple of minutes. I've used the Windows Task Scheduler as a quick and easy way of calling the application but the problem is that the window is displayed every time the application is called. Is there any way of telling the Windows Task Scheduler not to display the window or can I change my application so it does not show a window as it's executing? Thanks :)

          J Offline
          J Offline
          Joseph Guadagno
          wrote on last edited by
          #4

          You can take a look at the Guadagno Task Scheduler, an article here on CodeProject. http://www.codeproject.com/useritems/Guadagno_Task_Scheduler.asp. This application is a pluggable Task Scheduler that lets you write your own task to schedule. It comes with a RunCommand plug-in that provides the scheduling for Command Line files.

          Here are some of my articles. Hope this helps! Joseph Guadagno http://www.josephguadagno.net

          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