Active Partitions Under NT with VB6

Question:
I have to tell you, you solved a problem for me (rebooting NT from VB), which I’ve been trying to figure out for months. Much thanks.

Now I can move on to the next part of the program, which I don’t know how to do. I’m hoping you can help me once again.

Here’s what I’m trying to do: I want to be able to put a small DOS partition on the drive with my NT partition (I’m using FAT for everything for now.) Then I want to be able (under NT) to programatically set the DOS partition active, tell NT to reboot, and have it boot off of the DOS partition.

Is this possible? I know utilities like Partition Magic will let you do all kinds of tricks (move, hide, etc.) under NT. But can it be done from Visual Basic?

Answer:
Actually, this is easier than you might think. Look on your C: root directory for a read-only, system file called Boot.Ini. You should have a selection called

C:=”MS-DOS”

You should also have a line starting with

Default=xxxxx

You merely need to change the Default line to

Default=C:

You can optionally save the original default, or keep two files (say, BootIni.NT and BootIni.DOS) and copy them back and forth to Boot.INI. Remember, in any case, to set the attributes of Boot.INI to Read/Write rather than Read-Only and toggle the System setting off.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS