Schedule task in batch

Hewlett-packard / Sd2100
July 5, 2009 at 21:55:32
Specs: Windows Vista, 1024
im running Vista I get an error saying that i cant run a AT command in interactive and to use SCHTASKS command.

well im having a kinda of a hard time using that command would someone give me an example if possible.

in my batch i have a an option that if seleted creates a batch file and it schedules the task using the AT command well its not interactive.

i would like to know how could i schedule a batch file to run either daily or weekly and is interactive.

thank you

See More: Schedule task in batch

Report •

July 6, 2009 at 03:55:48
I don't know if the following tip may help as now I am running under Windows XP qnd the Vista PC is powered off, but

have you tried to set the /interactive switch in the AT command?

Report •

July 6, 2009 at 05:37:10
yes it says warning due to security enhancements it may run in interactive try sctasks for interactive. but it doesnt run in it.

if you can figure it out try and explain what all the fields are doing. if you want of course :)

Thanks IVO.

Report •

July 6, 2009 at 06:36:41
I powered on the Vista box and examined the mysterious command, here two examples:

A) Schedule weekly on friday at 3.00 PM (interactive)

  schtasks /Create /SC WEEKLY /D FRI /TN Friday_Batch /TR C:\MyBatch\My_Fri.bat /ST 15:00

B) Schedule daily at 9.15 PM (interactive)

  schtasks /Create /SC DAILY /TN Daily_Batch /TR C:\MyBatch\My_Daily.bat /ST 21:15

Just try and report what happens.

Report •

Related Solutions

July 7, 2009 at 18:23:34
they both worked great IVO

thanks for your help!

Report •

July 12, 2009 at 14:20:04

i have a Question wouldnt happen to know how to use the schtask command have the batch schedule and run as administrator at time of run.

Report •

July 14, 2009 at 00:47:11
Any ideas guys?


Report •

July 17, 2009 at 20:08:31
Guys i need help. my batch creates the task but needs Admin rights now can i set it so the task run at high privileges?

Report •

Ask Question