Hi,
Please find the steps of creating a batch file and including in scheduled
tasks.
1. Open a new notepad file.
2. Type in the commands that you want to execute at scheduled times.
Example:
Dir /p /s
Pause
3. Click on file menu and click on 'save as' option
4. Specify the file name with .bat extension in quotes.
Example: "test.bat"
5. Choose 'all files' in 'save as type' option.
Note: The quotation ensures that the file is saved as a batch file instead
of a text file.
Please make a note of the path where you saved the file.
6. Open control panel and open scheduled tasks.
7. Double click 'add scheduled task'
8. Click on next in the initial wizard.
9. Now please click on browse button and choose the batch file that you
created earlier.
10. Choose appropriate schedule, enter a user name and password to run the
task
11. Click on finish.
Now the commands in the batch file get executed at specified time.
Thank you,
Rashmi
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: Terry Pinnell <
[email protected]>
| Newsgroups: microsoft.public.windowsxp.help_and_support
| Subject: Re: Specifying Scheduled Tasks
| Date: Tue, 20 Apr 2004 14:50:02 +0100
| Organization: Posted via Forte APN,
http://www.forteinc.com/apn/index.php
| Message-ID: <
[email protected]>
| References: <
[email protected]>
<
[email protected]>
| X-Newsreader: Forte Agent 1.93/32.576 English (American)
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| X-Complaints-To: (e-mail address removed)
| Lines: 24
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!border2.nntp.ash.giganews.com!border1.nntp.ash.gi
ganews.com!nntp.giganews.com!pd7cy2so!pd7cy1no!shaw.ca!sn-xit-03!sn-xit-01!s
n-post-02!sn-post-01!supernews.com!news20.forteinc.com!not-for-mail
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.windowsxp.help_and_support:416674
| X-Tomcat-NG: microsoft.public.windowsxp.help_and_support
|
| (e-mail address removed) (Rashmi.K.Y [MSFT]) wrote:
|
| >Hi,
| >
| >You can specify any executable program to run at scheduled time. This
| >includes any programs stored on hard drive and not just those displayed
in
| >add/remove programs.
| >
| >Yes you can add commands with switches to run at scheduled time but not
| >directly. Those commands should be scripted to a batch file. The batch
file
| >can be scheduled to run.
| >
| >Hope that answers your query.
| >
| >Thank you,
| >
| Thanks, Rashmi. If I made a BAT file (which maybe I could with some
| effort!), how would I get it to appear in Scheduled Task's drop down
| list please? Would placing it in C:\Program Files be sufficient?
|
| --
| Terry, West Sussex, UK
|
|
|