Chimaera Posted July 14, 2016 Share Posted July 14, 2016 Hi all im trying to make a button set a machine to start in safe mode using bcdedit which seems to be the best and easiest way but It doesnt work and im scratching my head as to why Ive tried with admin/without admin/compiled and a load of stuff, but no joy Case $hButton_3 ;~ bcdedit /set {current} safeboot network ;~ Run(@ComSpec & " /c " & 'bcdedit.exe /set {current} safeboot minimal', "", @SW_HIDE) ; >' & @AppDataDir & '\Toolz\savelog.txt' ;~ bcdedit /set {current} safeboot minimal ;~ Run('bcdedit /set {current} safeboot minimal') Local $test = Run(@ComSpec & " /k " & 'bcdedit.exe /set {current} safeboot minimal', 'C:\Windows\System32', @SW_SHOW) ;~ RunWait(@ComSpec & " /c " & "bcdedit.exe /set {current} safeboot minimal") MsgBox(64, 'test', $test) I even tried making it look at 64 bit just in case C:\Windows\Sysnative\bcdedit The error i get is this in the command window but bcdedit is definitely in the folder Can anyone suggest where i might be going wrong? If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
Chimaera Posted July 14, 2016 Author Share Posted July 14, 2016 nvm i think i finally got it figured i needed DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 1) before the command If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
rudi Posted July 15, 2016 Share Posted July 15, 2016 Hi. See this posting (sysnative) regards, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now