<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Otak Atik [dot] Com &#187; Scheduler</title>
	<atom:link href="http://www.otakatik.com/tag/scheduler/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.otakatik.com</link>
	<description>Empowering Computer</description>
	<lastBuildDate>Wed, 25 Jan 2012 09:06:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Schedule Tasks with Command Prompt</title>
		<link>http://www.otakatik.com/schedule-tasks-with-command-prompt/</link>
		<comments>http://www.otakatik.com/schedule-tasks-with-command-prompt/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 05:13:10 +0000</pubDate>
		<dc:creator>Edi Kwie</dc:creator>
				<category><![CDATA[Internet World]]></category>
		<category><![CDATA[MS-DOS]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows XP]]></category>
		<category><![CDATA[Scheduler]]></category>

		<guid isPermaLink="false">http://www.otakatik.com/?p=146</guid>
		<description><![CDATA[There&#8217;re so many available ways to create schedule tasks in Windows XP. From command line until GUI tools, you can choose one from them. And then I curious to try the command line schedule tasks tools which have bundled by Windows XP. The tools are at command and schtasks command. The at command is an [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0110/logo.png" alt="" align="left" />There&#8217;re so many available ways to create schedule tasks in Windows XP. From command line until GUI tools, you can choose one from them. And then I curious to try the command line schedule tasks tools which have bundled by Windows XP. The tools are <code>at</code> command and <code>schtasks</code> command.<span id="more-146"></span></p>
<p>The <code>at</code> command is an old command that avaiable since Windows 2000 (correct me if I wrong), you can create remote tasks with this command. And best part from <em>at</em> command is it has simple parameters. Just put some parameters with it and then a task will created. On other side with <code>schtasks</code> command you can create complex tasks but maybe you can confused with its parameters that so complicated.<br />
OK, first we will learn about at command.</p>
<ol>
<li>To use at command, open your command console first via <strong>Start</strong> -&gt; <strong>Run</strong> menu and then type <code>cmd</code> in textbox or via <strong>Start</strong> -&gt; <strong>All Programs</strong> -&gt; <strong>Accessories</strong> -&gt; <strong>Command Prompt</strong>.</li>
<li> At prompt type <code>at /?</code> if you want get some help from <code>at</code> command.</li>
<li> To create a remote task, just type <code>at \\server 6pm /every:sunday "winword.exe"</code>, we can learn from that command parameters, <strong><code>\\server</code></strong> is your remote computer, 6pm is the time that the task will ran, <strong><code>/every:sunday</code></strong> is day parameter and last &#8220;winword&#8221; is task will ran.<br />
<img title="AT Command" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0110/at_1.jpg" alt="AT Command" /></li>
<li> If you want display all running tasks just type at on prompt.<br />
<img title="AT Command" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0110/at_2.jpg" alt="AT Command" /></li>
<li> To delete a task, type <code>at 2 /delete</code>, number 2 is id task you can look it with typing at at your prompt (point 2), <code>/delete</code> is parameter to delete a task. To delete entire tasks, type <code>at /delete</code>.<br />
<img title="AT Command to delete task" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0110/at_3.jpg" alt="AT Command to delete task" /></li>
<li> Almost forgeted, if you want create a local task, just type <code>at 6pm /every:sunday "test.bat"</code>, you can look the explaining in point 3.<br />
<img title="AT Command to create task on local computer" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0110/at_4.jpg" alt="AT Command to create task on local computer" /></li>
</ol>
<p>Now, I want discuss about <strong><code>schtasks</code></strong> command.</p>
<ol>
<li> To create a task with <code>schktaks</code> command, type <code>schtasks /create /ru system /sc weekly /d fri /tn "Remain me to make report" /tr "excel.exe" /st 19:00:00</code>. And this is the explanation from that command; <code>/create</code> is parameter to create task, <code>/ru</code> is parameter to set user that run this task,  <code>/sc</code> is paremeter to defines frequency the task will ran you can choose MINUTE, HOURLY, DAILY, WEEKLY, MONTHLY, ONCE, ONSTART, ONLOGON, ONIDLE for parameter value, <code>/d</code> is day to run, <code>/tn</code> is parameter to task name, <code>/tr</code> is parameter to set task to run, <code>/st</code> is parameter to start to run.<br />
<img title="Schtaks command" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0110/schtasks_5.jpg" alt="Schtaks command" /></li>
<li> To display all run tasks type <code>schtasks</code> at prompt.<br />
<img title="Schtaks command to view entire task" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0110/schtasks_6.jpg" alt="Schtaks command to view entire task" /></li>
<li> To display all tasks that have been created with <code>at</code> command or <code>schtasks</code> command you can display it with Scheduled Tasks software that run in GUI mode. To open it click <strong>Start</strong> &#8211; <strong>All Programs</strong> &#8211; <strong>Accessories</strong> &#8211; <strong>System Tool</strong> - ,<br />
<img title="GUI Mode to view entire task" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0110/sch_tasks_7.jpg" alt="GUI mode to view entire task" /><br />
and look what happend with your all tasks in there.<br />
<img title="GUI Mode to view entire task" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0110/sched_task_8.jpg" alt="GUI mode to view entire task" /></li>
<li> And to delete task with <code>schtasks</code> command, type <code>schtasks /delete /tn "Remain me to make report" /F</code>, <code>/tn</code> fill with your task name, <code>/f</code> parameter is parameter to forces the utility to delete the task and suppress any warnings when the task is currently running.<br />
<img title="Command to delete a task" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0110/sch_tasks_9.jpg" alt="Command to delete a task" /></li>
<li> To display all schtasks parameter type <code>schtasks /?</code> or if you want detail about <code>/delete</code> parameter or else, type <code>schtasks /delete /?</code> at your prompt.</li>
</ol>
<p>I hope your job to scheduling your task will be more easier.</p>
<p>note:<br />
Whaever the method you take to create scheduled tasks don&#8217;t forget to activate Task Scheduler Service (by default, Windows XP always activate it), to learn more about Activate Windows Service, look here.<br />
<img title="Taks Scheduler service" src="http://www.otakatik.com/wp-content/uploads/tiptrick101/0110/task_service_10.jpg" alt="Task Service" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.otakatik.com/schedule-tasks-with-command-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

