Windows7 Force boot to Safe mode via API

此生再无相见时 提交于 2019-12-02 12:24:27

问题


Is there a way via the Windows API or altering a file to reboot the computer in safemode with Network support. (Windows 7)

For Windows 2000 and XP you could simply add '/safeboot:network' to the boot.ini file.

However with Windows 7 there is no such file.

My goal is to code this using Delphi, but any language code samples would be appreciated.


回答1:


I think you have to edit the BCD file. there is a command line utility bcdedit that can do this (set SAFEBOOT to NETWORK). I don't know how to use CMD utilities from delphi, sorry.



来源:https://stackoverflow.com/questions/5897922/windows7-force-boot-to-safe-mode-via-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!