Discussion Locked

Scheduled task

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a .bat that runs on my NT4 workstation every 2 mins, this can get quite annoying (good idea at the time) is there anyway to have this task run in the background or minimised, or maybe there is a command I can put in the batch file

Thanks In Advance

3 replies

by loong

Dear Chris,

How do you schedule the batch file?

Are you using the AT command? If so, try to omit the /INTERACTIVE switch.

What do you run in the batch file? If it contains standard NT commands, you can try to prefix the commands with an '@'sign.

Hope this helps.

by chris r

thanks for response

I have set it up as a scheduled task via my computer.
Ive have never been able to suss out the AT command.
The first line in my batch file is
@echo off

It pings our servers then writes a logfile on my local machine depending on their response.

Should I be using AT if so how ????

T.I.A

by estebandelatorre

I suggest you to modify the .bat file in oder to call itself for a new run, instead of opening a new ntvdm and run the new process.
CHANGE the bat file LIKE THIS:

:START
MYCOMMAND.EXE
DELAY.EXE (TO DELAY EXECUTION FOR ABOUT 2 MINUTES)
GOTO START

You can abort it with CTRL+C

This discussion is closed to new replies.