Link to home
Start Free TrialLog in
Avatar of ianduncan
ianduncan

asked on

AT command in DOS help please

I am creating a scheduled job on another PC using the dos AT command.
This works OK, but I am trying to manually assign the id number of the scheduled job, is this possible?
The at/? command doesn't give me much help.
eg
at \\pcname 10:00 /interactive "command in here"
this works ok, but i want to give it a job number thus
at \\pcname 1 10:00 /interactive "command in here"

any help would be greatly appreciated.

Ian
Avatar of billious
billious

ianduncan,

I believe that the AT is confusing, and that there are two forms to the command, shown on two separate lines

at ... id /delete...

and

at time /interactive ...command...

AT assigns a number serially to commands it has queued.

at ... id /delete deletes a queued command ...

at time ...

queues a new command (and automatically assigns it a serial number, so that the AT ID /DELETE can be used to delete that command individually.)

hence, you cannot assign an ID to a new queued command - it is assigned automatically.

(Based on NT4 - later versions may be different)

...Bill
Avatar of ianduncan

ASKER

Thanks Bill,
Does anybody know if this is possible to do in Windows 2000?

Ian
ASKER CERTIFIED SOLUTION
Avatar of pbarrette
pbarrette

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks again pb
vey usefull code
Hi Ian,

No problem. Glad you've got what you need.
pb