Article ID: 142040 - View products that this article applies to.
This article was previously published under Q142040
You can use the /k switch with the AT command to troubleshoot a scheduled batch job. The /k command allows you to manually run the batch job. To do so, type the following command at the MS-DOS command prompt, where xx:xx is the time in hours and minutes:
at xx:xx /interactive cmd.exe /kWhen you use the Windows Resource Kit utility Soon.exe, you can simplify this command so that it runs in the next 5 seconds automatically. To do so, type the following command at a command prompt:
soon /interactive cmd.exe /kBoth of these commands open the MS-DOS command prompt at a scheduled time and allow you to manually run the batch job.
If an MS-DOS command prompt does not open, start the Services tool in Control Panel, and then confirm that the Schedule service is started. Click the Startup button, and then confirm that the System account is selected; only the System account can interact with the desktop. Network connections made under the System account use a null session for credentials; therefore, you may have to supply a user name and password for commands such as net use.
Before you run your batch job, type the set command. When you do so, all environmental variables including the user name are listed. This command helps you understand the environment that the command scheduler is running in.
When you run the AT command line that is described in the preceding section, you can troubleshoot situations where a batch job runs successfully when it is executed from the command line, but it does not run when you execute it using the AT command.
In addition to troubleshooting the batch job, do the following:
Article ID: 142040 - Last Review: February 20, 2007 - Revision: 2.2