bcdedit.exe not found in shellExecute_()

Just starting out? Need help? Post your questions and find answers here.
danny88
User
User
Posts: 38
Joined: Sun Jan 21, 2024 8:13 am

bcdedit.exe not found in shellExecute_()

Post by danny88 »

Hello
When I run this command

Code: Select all

ShellExecute_(0, "RunAS", "bcdedit.exe", "/set {Default} safeboot minimal", "", #SW_SHOWNORMAL)
The command is not successful but if I copy bcdedit.exe to an other location and call it, it works.

PB x86 on Windows x64.

How to do it ?

thanks