what should i do when avast found the virus but avast cannot delete the virus... it cannot be removed to the chest either
how do i set it so next time before the window started, a system scan can be performed before the window started up?
Windows in its infinite wisdom protects files in use (even malware), so it is likely that avast! can't delete or move files in use. So schedule boot-time scan in avast's menu if you have XP, win2k or NT, otherwise boot into safe mode and run an avast scan. This should ensure that the file isn't in use and avast should be able to deal with it.
The file name and location that Igor asked for can give us an idea of why it couldn't be moved or deleted, for the future, deletions isn't a good first option, send it to the chest, which gives you other options.
By now you should have the answer to your second question in one of the other Two Topics you started asking this question.