Computing.Net > Forums > Programming > Schedule task in batch

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Schedule task in batch

Reply to Message Icon

Name: brockey01
Date: July 5, 2009 at 21:55:32 Pacific
OS: Windows Vista
CPU/Ram: 1024
Product: Hewlett-packard / Sd2100
Subcategory: Batch
Comment:

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
Brock



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: July 6, 2009 at 03:55:48 Pacific
Reply:

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?


0

Response Number 2
Name: brockey01
Date: July 6, 2009 at 05:37:10 Pacific
Reply:

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.


0

Response Number 3
Name: IVO
Date: July 6, 2009 at 06:36:41 Pacific
Reply:

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.

0

Response Number 4
Name: brockey01
Date: July 7, 2009 at 18:23:34 Pacific
Reply:

they both worked great IVO

thanks for your help!
Brock


0

Response Number 5
Name: brockey01
Date: July 12, 2009 at 14:20:04 Pacific
Reply:

IVO,

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.


0

Related Posts

See More



Response Number 6
Name: brockey01
Date: July 14, 2009 at 00:47:11 Pacific
Reply:

Any ideas guys?

thanks


0

Response Number 7
Name: brockey01
Date: July 17, 2009 at 20:08:31 Pacific
Reply:

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?



0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Schedule task in batch

batch file to set in schedule task www.computing.net/answers/programming/batch-file-to-set-in-schedule-task/14751.html

Batches and Task Schedulers www.computing.net/answers/programming/batches-and-task-schedulers/11829.html

Batch file not run scheduled task www.computing.net/answers/programming/batch-file-not-run-scheduled-task/16757.html