Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

how do I lauch a batch file with task scheduler


  • Please log in to reply

#1
fleamailman

fleamailman

    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
done

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
done

[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.
echo this is where you write your text
echo.
pause



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

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

  • 0

Advertisements







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