如何在 Vista 或 Win7 中启用 DOS
AFAIK Vista和Windows 7中没有DOS,但我需要执行用汇编器编写的系统程序来读写数据(BIOS)。 我无法在 Vista 中执行此操作,因为我处于 user more (ring-3) 状态。 这就是为什么我有两个想法: - 执行DOS形式(但我需要DOS); - 编写在登录用户模式之前执行的服务。
从软盘加载 DOS 并不是一个好主意,因为我没有软盘。
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 DOS (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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
使用FreeDOS,它声称100% MS-DOS 兼容并且可以免费下载。它可以从 CD 或 USB 记忆棒启动。
Use FreeDOS, which claims to be 100% MS-DOS compatible and can be downloaded for free. It is bootable from CD or USB stick.
您可以使用闪存驱动器,用工具格式化它以启动进入dos: 工具。
然后你需要引导文件(我将在下一个答案中发布,因为我是新用户,不能发布两个链接......)
步骤:
1)安装HP USB磁盘格式化工具,运行它。
2) 选择您要使用的 USB 驱动器,在文件系统下拉列表中选择“FAT32”,使用快速格式化,然后“创建 dos 启动盘”,然后单击“...”将工具指向您的启动文件上面提取的。
该闪存驱动器现在将启动到 dos,您可以运行与 BIOS 交互所需的任何内容,例如 BIOS 闪存、显卡固件闪存等。
祝您好运!
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!
虚拟 PC 或 VMWare
Virtual PC or VMWare
除了虚拟机解决方案(VirtualBox、VirtualPC、VMWare)之外,您还可以在 DOSBox。
我使用 DOSBox 运行旧的 DOS 程序并取得了巨大成功。它没有真正做的一件事是模拟打印机端口,因此如果您需要从 DOS 程序进行打印,您将需要虚拟机解决方案。
DOSBox 还适用于 Linux 和 Mac。
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.
你的程序到底是做什么的?需要更好的描述。
如果您需要刷新 BIOS,请创建启动 CD 并从提示符中使用 BIOS 刷新器。正常的启动 CD 应该为您的 CD-ROM/DVD-ROM 加载 MCDEX 驱动程序,这样它就可以工作了。您需要将 BIOS 刷新器刻录到 CD,因为您的 Windows 分区可能无法在提示中访问。 MS-DOS 不识别 NTFS。几乎任何 CD 刻录机应用程序都可以完成此操作。如果您不需要对系统进行更改,即这不是某种固件闪存程序,请使用DOSBox、FreeDOS 或 任何其他 免费 DOS 模拟器来安全运行它。
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.