开发者

How to enable DOS in Vista or Win7

AFAIK there is no DOS in vista and windows 7, but I need to execute system program written on assembler to read and write data (BIOS). I can't do thus from Vista, because I'm in user more (ring-3). That's why I have 2 ideas: - execute form D开发者_运维知识库OS (but I need DOS); - write service that executes before I log in to user mode.

Loading DOS from floppy isn't good idea since I don't have floppy.


Use FreeDOS, which claims to be 100% MS-DOS compatible and can be downloaded for free. It is bootable from CD or USB stick.


You can use a flash drive, format it with a tool to boot into dos: tool. Then you need bootfiles (which I'll post in the next answer, since I'm a new user and can't post two links...)

Steps:

1) Install the HP USB disk format tool, run it.

2) Select your USB drive you want to use, select "FAT32" in the file system drop down, use quick format, and "create a dos startup disk" and click the "..." to point the tool to the bootfiles you extracted above.

That flash drive will now boot to dos and you can run whatever you need to interact with the BIOS, like a BIOS flash, a video card firmware flash, etc.

Good luck!


Virtual PC or VMWare


In addition to the virtual machine solution (VirtualBox, VirtualPC, VMWare) you might be able to run your program under DOSBox.

I have used DOSBox with great success to run old DOS programs. The one thing it doesn't really do is emulate a printer port, so if you need to print from your DOS program, you will want a virtual machine solution.

DOSBox is also available for Linux and Mac.


What exactly does your program do? A better description is called for.

If you need to flash the BIOS, create a boot CD and use your BIOS-flasher from the promt. A sane boot-CD should load MCDEX drivers for your CD-ROM/DVD-ROM so it works. You will need to burn your BIOS-flasher to a CD as your Windows partition is probably inaccessible in the promt. MS-DOS does not understand NTFS. This can be done with almost any CD burner application out there. If you don't need to make changes to the system, i.e this is not a firmware flasher of sorts, use DOSBox, FreeDOS or any other free DOS emulator to run it safely.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜