It's been a while since I last used Windows 98 but today had to add a batch file to an old computer which ran from scheduled tasks every day.

Encountered the problem where the command window was still open once the scheduled task had finished - as this is an unattended pc, so coming back to it several weeks later would have meant closing lots of these open command windows!

Goggled for a solution to closing a command window from a batch file when run from

scheduled tasks produced lots of questions on how to do it and lots of answers for how to do it in XP (!) where exit /B works quiet happily.

The solution is relatively simple though' but right clicking your batch file and selecting properties then the Program tab and then ticking close on exit and OK will create a shortcut with the same name as the batch file.

This then closes the command window properly when the batch file has finished running when started by scheduled tasks.