![]() Financial Daily from THE HINDU group of publications Wednesday, Mar 31, 2004 |
|
|
|
|
|
eWorld
-
Computer Usage Columns - Tip Off Of commands and batch files
I need some information about commands in batch file. I mentioned in batch file as @at time:10:15:11.35p "c:\data\byt." But the command is not run in the specified time. The batch file extension is byt, which is the batchfile I mentioned with path in batch file. Please tell me what the Schedule service is. How do I use the `AT' `at' command to use at command in a batch file? My system runs on: Windows NT 2000. Please suggest a solution with an example. M.D. Anwar "AT" is a command line utility used for scheduling tasks. It uses the same "Task Scheduler" service used by the widows scheduler in the control panel. You need to have this service running to have the "AT" command working. Please check out some information on the same by going to the "Services" icon in the control panel. A correction to the above command is that you should remove the "time" parameter form the command line and just give the command as "at 10:15 c:\data\byt.bat". Since this command runs as a background process you can include "{circ}{gt} c:\output.txt" to the command line so that you can see what has actually happened, so you command will now look like this: "at 10:15 c:\data\byt.bat {circ}{gt} c:\output.txt ". There is one more command utility which you can use to schedule tasks, it is the schtasks.exe. It has all the functionality of "AT" and more. The scheduler in the control panel and schtasks.exe are one and at the same. In other words, using schtasks.exe you can handle the windows scheduler form the command prompt itself.
Solution by G. Rajah
Article E-Mail :: Comment :: Syndication
|
Stories in this Section |
|
The Hindu Group: Home | About Us | Copyright | Archives | Contacts | Subscription Group Sites: The Hindu | Business Line | The Sportstar | Frontline | The Hindu eBooks | Home |
Copyright © 2004, The
Hindu Business Line. Republication or redissemination of the contents of
this screen are expressly prohibited without the written consent of
The Hindu Business Line
|