Jump to content
Sign in to follow this  
incepator

run in cmd

Recommended Posts

incepator

I have a queries, if you can help me ...
I have a command that I want to run it in cmd, the problem is that does not work, probably because an administrator must run at ..

bcdedit /set {bootmgr} displaybootmenu no

Share this post


Link to post
Share on other sites
JLogan3o13

Are you not an administrator on the machine? If not, why are you trying to edit the boot configuration store?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
incepator

I want to do a simple software, with 2 buttons... to activate and deactivate boot...

Share this post


Link to post
Share on other sites
incepator

Not working this method...:(

Run (@ComSpec & " /c bcdedit /set {bootmgr} displaybootmenu yes")

Share this post


Link to post
Share on other sites
incepator

I am an administrator, if you go into cmd and write manually...it works, but...if you run this script not working .

Share this post


Link to post
Share on other sites
JoHanatCent

Do you get anny errors?

try replacing /c with /k and let us know.


Share this post


Link to post
Share on other sites
JLogan3o13

And it works fine from command line?


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
water

How about adding

#RequireAdmin

at the top of your script?


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
incepator

than me is not working?

If you type the command manually in cmd ... it works, but the script does not work

Manually it works...

post-75717-0-77763800-1379972126_thumb.p

Script command not working...

post-75717-0-38276400-1379972142_thumb.p

Share this post


Link to post
Share on other sites
water

Could you try:

#Requireadmin
ShellExecute("bcdedit", "/set {bootmgr} displaybootmenu yes")

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
michaelslamet

What if you run it using RunAs (admin), search for RunAs in the help file

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×