When you boot the machine (I'm assuming Win9x), press F8 to get the boot menu, and select Safe mode.
Open CONFIG.SYS in Notepad. Put the characters REM in front of any line referencing c:\realmode\aspic8u2.sys and c:\realmode\aspi2dos.sys to disable those lines. Save and close, then try to reboot into normal Windows.