The question was how to get to the DOS prompt before Windows opens. Paul is right, this depends on the OS. In Win 9x, F8 during boot took you to an options screen where DOS was one of the options. That option no longer exists in Win XP.
The only I know to do it with XP is to have a boot floppy or CD that contains DOS.