Windows7通过API强制启动到安全模式 [英] Windows7 Force boot to Safe mode via API

查看:176
本文介绍了Windows7通过API强制启动到安全模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法通过Windows API或更改文件重新启动计算机的安全码与网络支持。 (Windows 7)

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

对于Windows 2000和XP,您只需将/ safeboot:network添加到boot.ini文件。

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

但是,Windows 7没有这样的文件。

However with Windows 7 there is no such file.

我的目标是使用Delphi编写代码,但是任何语言代码示例都将不胜感激。 / p>

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

推荐答案

我想你必须编辑BCD文件。有一个命令行实用程序bcdedit可以这样做(将SAFEBOOT设置为NETWORK)。我不知道如何使用delphi的CMD工具,对不起。

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 delp sorry.

这篇关于Windows7通过API强制启动到安全模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆