
Change active partition using a script?
Quote:
> Accessing hardware directly under Win2k? I would be very surprised if you found
> any utility that does this for you from inside Win2k.
Hi
Hmm, I stand corrected. After some research I found that there exists one such
utility ;-) And of course, it is PowerQuest that makes it, who else ;-) In the
Partition Magic package, you will find Pqboot32.exe that can set active partition
from command line. I have done extensive searching, but have not been able to find
any other product that can do this.
It doesn't seem like WMI is a solution either. The BootPartition property in the
Win32_DiskPartition class is read-only.
Win32_DiskPartition
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_diskpartitio...
Anyway, here is an API reference if you want to make something yourself:
Subject: Re: Set active partition programatically
Newsgroups: microsoft.public.win2000.file_system
Date: 2001-02-26 08:00:07 PST
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=%23n...
<qoute>
Which Ioctl are you using?
You can use IOCTL_DISK_SET_PARTITION_INFO, with PartitionInformation->BootIndicator
= TRUE to set a partition active. You need to clear BootIndicator for the other
partition.
</qoute>
--
torgeir