Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

how do I lauch a batch file with task scheduler

  • Please log in to reply



    Member 2k

  • Member
  • PipPipPipPipPip
  • 2,383 posts
OK, I am almost there I feel but I am just missing one peice of the puzzle, here is my canned and what is missing is the batch file line that will exsicute the batch file to put the message on the screen

the idea:
to make a popup reminder
(examples: monthly payments, weekly errands, homework, to do lists, etc.,)
- step 1. make a batch file with text and colored background
- step 2. use scheduled tasks to lanch it when you want it

step 1: to make a colored batch file that puts text on screen

runbox command
- press keyboard buttons: winkey + r
- paste this in slot: notepad
- press: enter
(notepad window opens)

- type in window: @echo off
(this hides the commands so one only sees the text)
- type: color 1f
(f is the color of background, 1 is the color of text)
(the list of color choices is below)
- type: echo.
(gives you a blanc line)
- type for example: sunday is garbage day
- type: echo.
- type: pause
(pause just means end here)
- click top of window: file
- choose: save as
- type for example: "garbage day.bat"
(don't forget the inverted commas, or it won't show on screen)
- press: save

step 2: to use scheduler to lanch the batch.file

runbox command
- press keyboard buttons: winkey + r
- paste this in slot: tasks
- press: enter
- click: add scheduled task
(scheduled task wizard window appears)
- click: next
- click: browse
- find your newly made bat file
- double click your newly made bat file
- optional, type name of task
(best just leave it but if you have many...)
- choose lanching time(s)
(for example choose: weekly)
- press: next
(if weekly, choose the day and time)
- press: next
(password prompt appears)
- ignore password prompt
- press: next
- press: finish

[footnote 1] to change the colors:
- normally cmd is 07, that is 0 black background and 7 white text , to change color just choose from below, for example I like 1f which is

0 = black
1 = blue
2 = green
3 = aqua
4 = red
5 = purple
6 = yellow
7 = white
8 = gray
9 = light blue
a = light green
b = light aqua
c = light red
d = light purple
e = light yellow
f = light white

here is a simple template, so you only have to write the text

@echo off
color 1f
echo this is where you write your text

thanks, I am sure that it is start C: place of bat file

Edited by fleamailman, 05 November 2006 - 02:23 PM.

  • 0


Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP