Such can be accomplished with what's in your MSDOS.SYS file. Here's the google.
The first link reveals an answer.
My Notebook comp runs Windows Me,with the system fully installed via recovery disks to "factory condition" after a change of HD. However, I find that Scandisk no longer runs after an "Improper shutdown". How do I configure Scandisk or the System to do such ? My machine runs fine otherwise. Thanks.