blank.gif (43 bytes)

Church Of The
Swimming Elephant

Search:
index.gif

ntcmds00000000.gif

At--Notes

The at command requires you be a member of the local Administrator group. Also, the at command does not automatically load cmd, the command interpreter, before running commands. Unless you are running an executable (.EXE) file, you must explicitly load CMD.EXE at the beginning of the command; for example, cmd /c dir > c:\test.out.

Viewing Scheduled Commands

The at command has two displays. When you use at without options, you see a display similar to the following:

STATUS ID Day Time Command Line

0 Each F 04:30PM net send group leads status due

2 Each M 12:00AM chkstor > check.fil

3 Each F 11:59PM backup2.bat

When you include the identification number for the command, the display provides information for a single entry and is similar to the following:

Task ID: 0

Status: OK

Schedule: Each F

Time of Day: 04:30PM

Command: net send group leads status due

After you schedule a command with at (especially a command that has option variables), check that the command is entered properly by typing at without options. If the information in the Command Line column isnt correct, delete the command and retype it. If it still isnt correct, retype the command with fewer option variables.

Viewing Results

Commands scheduled with the at command run as background processes, so no output is displayed on the computers screen. To redirect output to a file, use the redirection symbol (>). If you redirect output to a file, enclose the name of the command you are scheduling in quotation marks. The current directory for the executing command is the %systemroot% directory.

Changing System Time

If you change the system time at a computer after scheduling a command to run with at, synchronize the at scheduler with the revised time by typing at without options.

Storing Commands

Scheduled commands are stored in the registry, so scheduled tasks are not lost if you have to restart the Schedule service.

Connecting to Network Drives

Scheduled jobs that access the network should not use redirected drives made by the user. The Schedule service may not be able to access these drives and they may not be present if a different user is logged on at the time the scheduled job runs. Instead, scheduled jobs should use UNC paths. For example,

at 1:00pm my_backup \\server\share

and not

at 1:00pm my_backup x:

where x: is a connection made by the user.

If you schedule an at command that uses a drive letter to connect to a shared directory, you should include an at command to disconnect the drive when you are finished using it. If the drive is not disconnected, the drive letter assigned will not be available or seen at the command prompt.

More Information About At

ntcmds00000001.gif At

ntcmds00000001.gif At--Examples

Cotse.Net

Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

 
.
www.cotse.com
Have you gone to church today?
.
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 Cotse.com.
Cotse.com is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609