This should work for W2K, W2003 and XP all versions. I've only tested it on W2K Server with a W2003 CD.
Boot from a Windows 2003 Server CD The command you want doesn't exist in earlier Windows versions, but you can use a Windows 2003 Server recovery console to rebuild the boot.ini for XP and w2K
Go to the recovery console.
Select the Windows install you want to repair.
Run the command:
If you get an error that the disk may be damaged, run:
chkdsk c:The /f option is not available in the recovery console