Specifying Scheduled Tasks

  • Thread starter Thread starter Terry Pinnell
  • Start date Start date
T

Terry Pinnell

When specifying a program to run as a Scheduled Task, you seem to get
a drop down list box containing every installed program. Does that
correspond exactly to Control Panel>Add Remove? And is it possible to
add 'command line switches/parameters' to these please?
 
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,

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: Specifying Scheduled Tasks
| Date: Mon, 19 Apr 2004 12:23:53 +0100
| Organization: Posted via Forte APN, http://www.forteinc.com/apn/index.php
| Message-ID: <[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: 8
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.
net!wn52feed!worldnet.att.net!216.168.1.162!sn-xit-02!sn-xit-01!sn-post-01!s
upernews.com!news20.forteinc.com!not-for-mail
| Xref: cpmsftngxa10.phx.gbl
microsoft.public.windowsxp.help_and_support:416212
| X-Tomcat-NG: microsoft.public.windowsxp.help_and_support
|
| When specifying a program to run as a Scheduled Task, you seem to get
| a drop down list box containing every installed program. Does that
| correspond exactly to Control Panel>Add Remove? And is it possible to
| add 'command line switches/parameters' to these please?
|
| --
| Terry, West Sussex, UK
|
|
 
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?
 
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
|
|
|
 
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,
Excellent, Rashmi, thank you so much. It's always so helpful when
someone goes to the trouble of a carefully-considered practical
example. I learn best by 'doing', so greatly appreciate your help.

I now see that, apart from the concept of using a batch file (which I
hadn't considered), the crucial facility I'd missed was that you can
use Browse to schedule *any* executable, not just the list in the
drop-down.

My challenge now will be to see if I can actually achieve my objective
using this technique. You may be curious about this, so ...
First I open an EXE file (it's called "C:\Program Files\Microsoft
ActiveSync\WCESMgr.exe" and runs a program called ActiveSync, which
synchronizes selected PC files with my iPAQ 2210 Pocket PC). But the
difficult part will be to then send a few keystrokes to it (Tab, a,
Shift+F10,and s), to get it to initiate the synchronisation process
automatically. My *very* first step will be to brush up on batch
files!
 
Terry Pinnell said:
Excellent, Rashmi, thank you so much. It's always so helpful when
someone goes to the trouble of a carefully-considered practical
example. I learn best by 'doing', so greatly appreciate your help.

I now see that, apart from the concept of using a batch file (which I
hadn't considered), the crucial facility I'd missed was that you can
use Browse to schedule *any* executable, not just the list in the
drop-down.

My challenge now will be to see if I can actually achieve my objective
using this technique. You may be curious about this, so ...
First I open an EXE file (it's called "C:\Program Files\Microsoft
ActiveSync\WCESMgr.exe" and runs a program called ActiveSync, which
synchronizes selected PC files with my iPAQ 2210 Pocket PC). But the
difficult part will be to then send a few keystrokes to it (Tab, a,
Shift+F10,and s), to get it to initiate the synchronisation process
automatically. My *very* first step will be to brush up on batch
files!

http://www.hiddensoft.com/autoit/
http://www.hiddensoft.com/autoit3/

Larry (AutoIt Developer)
 
Back
Top