• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Scheduling .bat files to run every 5 minutes

s3ntry

Junior Member
I have been trying to use the for and at commands on NT Server 4.0 to schedule a .bat file to run every 5 minutes. This is the best solution I can come up with, but it doesn't seem to work.

at a command prompt:

c:\for /L %a in (0,1,23) do for /L %b in (0,5,55) do at %a:%b /every:m,t,w,th,f,s,su d:\gbat\run_cron.bat

But I keep getting a strange error message:

0 was unexpected at this time.

I'm not sure what this message means... I've never seen it before.

If anyone could help, it would be greatly appreciated.

-Pete
 
Back
Top