SUMMARY
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 /k
When 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 /k
Both 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.