You are not logged in.
Hi,
Using a command line similar to this one:
SCHTASKS /CREATE /SC WEEKLY /D MON /TN "\Tasks\WeeklyReports" /TR c:\WeeklyReports\Generate_Weekly_Reports.bat" /ST 07:00
, the Windows Task Scheduler inserts the task. But instead of being scheduled for 7 am, it schedules it for the same time that it was inserted. So if I run the above command, at 5 pm, then the scheduler sets it to run for Monday weekly, at 5 pm, not 7 am.
How can I tell the Schedule that it has to be for a specific time?
Regards,
Offline
Your example has an unmatched quotation mark after .bat, that's probably enough to confuse SCHTASKS
Offline
That's the answer. I just tried it with the missing quote, and it's fine.
Thanks and regards,
Your example has an unmatched quotation mark after .bat, that's probably enough to confuse SCHTASKS
Offline