Sign in with
Sign up | Sign in
Your question

Manually change default os in xp and windows 7 dual-boot

Last response: in Windows 7
September 20, 2009 3:12:16 AM

Hello everybody,

I had Windows XP Pro running on my PC and I've installed Windows 7 using dual-boot.

I want to create a command line BAT file that will allow me to change the default OS system before I boot. For example If I'm working on XP and wants 7 to start-up automatically then I'll execute the batch file and it will manipulate the boot info so that i won't have to select it, and if i work in Windos 7 and want to automatically restart to xp i will run another BAT file.

I was able to do it in windows 7 using the command line bcdedit.exe application tha can control any aspect of the boot settings, but i couldn't find anyway to control the boot settings from within XP because the boot "belongs" to windows 7 and XP doesn't even "know it" or able to access it.

However I have a third-party application able to do that called VISTABOOTPRO, so i can assume it is indeed possible, but i want to create a simple one-click procedure to do it for me.

Does anyone know how can i access the boot settings from Windows XP ?

Thanks in advance.
a b $ Windows 7
September 20, 2009 7:52:25 AM

The bootloaders for XP and Win 7 / Vista are completely different. There is no way Windows XP will recognize Windows 7's bootloader. Once you installed Windows 7, XP's bootloader was overwritten and no longer exists. Windows XP no longer has any boot settings whatsoever.
September 20, 2009 12:25:31 PM

So how a third-party application like "vista boot pro" can change setting of the windows 7 bootloader even though running on xp ?
Related resources

Best solution

a b $ Windows 7
September 20, 2009 3:08:14 PM

Because the third party app was specifically designed for that purpose. Windows XP's bootloader no longer exists, however... the best you can hope to do is change the default manually each time before you reboot. It's really just easier to select the OS at the choices menu.
a c 215 $ Windows 7
September 20, 2009 7:58:26 PM

Zoron said:
It's really just easier to select the OS at the choices menu.

I second this. Set the default entry from within 7 for whichever OS you use more, and change the selection at the boot menu whenever you want to use the second OS.
a b $ Windows 7
September 21, 2009 5:32:17 AM

You could wirte a batch file or script to accomplish that, most likely... that's about the best you can hope for.
a b $ Windows 7
December 1, 2011 12:54:39 PM

This topic has been closed by Nikorr.