Windows 7 Task Scheduler Start a Program

I need to set up a Task Scheduler to run my batch job. Here is the steps which described onWindows website:

  1. Open Task Scheduler by clicking the Start button Picture of the Start button, clicking Control Panel, clicking System and Security, clickingAdministrative Tools, and then double-clicking Task Scheduler.‌ Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.

  2. Click the Action menu, and then click Create Basic Task.

  3. Type a name for the task and an optional description, and then click Next.

  4. Do one of the following:

    • To select a schedule based on the calendar, click DailyWeeklyMonthly, or One time, click Next; specify the schedule you want to use, and then click Next.

    • To select a schedule based on common recurring events, click When the computer starts or When I log on, and then click Next.

    • To select a schedule based on specific events, click When a specific event is logged, click Next; specify the event log and other information using the drop-down lists, and then click Next.

  5. To schedule a program to start automatically, click Start a program, and then click Next.

  6. Click Browse to find the program you want to start, and then click Next.

  7. Click Finish.

My Task is to start a program, but the program isn't invoked.  You have to configure Start in argument, otherwise it wouldn't work.
For example:

  1. Action: Start a program
  2. Program/script: path to your batch script  e.g.E:\Test\newscred\new\newscred.cmd
  3. Add arguments (optional): <if necessary - depending on your script>
  4. Start in (optional): Put the full path to your batch script location  e.g.E:\Test\newscred\new






發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章