I have a dual boot that has been running fine with Win7 and Win10. I can boot into Win7.
I have tried booting up into a Win10 CD. It can't repair Win10.
I have tried running this bat file after booting up with the Win10 CD, choosing repair and going into a cmd window.
What can I do to recover Win10 ?
Thank you,
Docfxit
I have tried booting up into a Win10 CD. It can't repair Win10.
I have tried running this bat file after booting up with the Win10 CD, choosing repair and going into a cmd window.
Code:
@echo off
Set drive=F:
wmic logicaldisk get deviceid, drivetype
setlocal
for /f "skip=1 tokens=1,2" %%i in ('wmic logicaldisk get caption^, drivetype') do (
if [%%j]==[5] Set CDDrive=%%1
)
Echo BOOTREC /SCANOS
BOOTREC /SCANOS
Echo BOOTREC /FIXMBR
BOOTREC /FIXMBR
Echo BOOTREC /FIXBOOT
BOOTREC /FIXBOOT
Echo COPY %CDDrive%\I386\NTLDR %drive%\
COPY %CDDrive%\I386\NTLDR %drive%\
Echo COPY %CDDrive%\I386\NTDETECT.COM %drive%\
COPY %CDDrive%\I386\NTDETECT.COM %drive%\
BOOTREC /REBUILDBCD
Echo bootsect /nt60 ALL %drive%\
bootsect /nt60 ALL %drive%\
Echo bootsect /nt60 %drive% /mbr
bootsect /nt60 %drive% /mbr
:: List Os's Installed
bcdedit /enum
endlocal
@CMD > Null
What can I do to recover Win10 ?
Thank you,
Docfxit