Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

What is the best way to run a Console application (C#) once per day at a certain time on Windows XP? I want to see the Console window.

share|improve this question

migrated from stackoverflow.com Sep 11 '10 at 11:28

This question came from our site for professional and enthusiast programmers.

3 Answers 3

up vote 9 down vote accepted

Using Scheduled Tasks


To open Scheduled Tasks

-> click Start

-> click All Programs

-> point to Accessories

-> point to System Tools

-> click Scheduled Tasks.

To schedule a new task:

1. Double-click Add Scheduled Task to start the Scheduled Task Wizard, and then click Next in the first dialog box.

2. The next dialog box displays a list of programs that are installed on your computer, either as part of the Windows XP operating system, or as a result of software installation.

Use one of the following procedures:

i) If the program that you want to run is listed, click the program, and then click Next.

ii) If you want to run a program, script, or document that is not listed, click Browse, click the folder and file that you want to schedule, and then click Open.

3. Type a name for the task, and then choose one of the following options:

  • Daily
  • Weekly
  • Monthly
  • One time only
  • When my computer starts (before a user logs on)
  • When I log on (only after the current user logs on)

4. Click Next, specify the information about the day and time to run the task, and then click Next.

*Note that the information about the day and time to run the task vary depending on the selection that you made in the previous wizard dialog box. For example, if you chose Weekly, you must indicate the day of the week, the time, and if the task should run every week, every 2 weeks, every 3 weeks, and so on.

5. Type the name and password of the user who is associated with this task. Make sure that you choose a user with sufficient permissions to run the program. By default, the wizard selects the name of the user who is currently logged on.

6. Click Next, and then click Finish after you verify the choices that you have made.

Resource from here

share|improve this answer

You can use the windows scheduler, something like:

at 5:00pm /interactive "c:\app.exe"

Or you can do it as a Windows Service and set "Interact with desktop" (or whatever it is called these days).

share|improve this answer

Use Scheduled Tasks. It does exactly that and lets you choose a specific interval.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
{"cc_re__cc_re__cc_by_sa_3_0": ["sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"//careers.stackoverflow.com?utm_source=stackoverflow.com&amp;utm_medium=site-ui&amp;utm_campaign=footerlink\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2014 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a> \r\n                with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2014.9.24.1887\r\n            </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\">Super User works best with JavaScript enabled<img src=\"http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif\" alt=\"\" class=\"dno\"></div>\r\n    </noscrip"], "copyright__copyright__copyright": ["ler, something like:\n\nat 5:00pm /interactive \"c:\\app.exe\"\n\nOr you can do it as a Windows Service and set \"Interact with desktop\" (or whatever it is called these days).\n\nshare|improve this answer\n\nUse Scheduled Tasks. It does exactly that and lets you choose a specific interval.\n\nshare|improve this answer\n\nYour Answer\n\n\u00a0\ndiscard\n\nBy posting your answer, you agree to the privacy policy and terms of service.\n\nNot the answer you're looking for? Browse other questions tagged or ask your own question."]}