To resolve this problem follow these steps:
1- Insert the installation CD of the operating system installed on your computer
2- Press F12 to select the CD Rom as first boot device
3- Press any key on the menu says "press any key to boot from cd or dvd" to enter the installation CD/DVD
4- From the CD select Repair your computer
5- Click next on the language selection screen
6- Locate the option of entering the command line and press ENTER
7- Write in the command line :
a) bootrec /FixMbr
b) bootrec /FixBoot
c) bootrec /RebuildBcd
8- Restart the computer
9- Press F12 to select the CD Rom as first boot device
10- From the CD select Repair your computer
11- Locate the option Automatic repair / Startup repair and press ENTER
12- Restart the computer
Note that the location of the command line and startup repair can vary depending on whether you use Windows Vista, 7 or 8.
EXAMPLE
WIndows 8.1 Pro
For command line option:
For automatic / startup repair option:
Now your computer will boot into windows automatically






