Jump to content

BCDEDIT command line


Recommended Posts

Hi!

I use this command to create a new entry in the boot configuration data store and get ID value to delete entry later when needed by adding it to registry.

@echo offfor /f "tokens=3" %%a in ('bcdedit /create /d "NTC Rescue HDD" /application BOOTSECTOR') do set guid=%%a reg add "HKLM\SOFTWARE\Grub4DOS\ID" /v ID /t REG_SZ /d %guid% /fpause

Now I want to delete this entry, I use "bcdedit /delete" and it require ID value.

And I use 

reg query "HKLM\SOFTWARE\Grub4DOS\ID" /V ID

to get ID for bcdedit delete command but the result is 

id    REG_SZ    {f617cb88-d83a-11e3-9726-009c021e8215}

So I just want to get {f617cb88-d83a-11e3-9726-009c021e8215} from the result, how can I get it? What command would be use? Such as Findstr or some thing ?? Please help me.

Edited by congnt92
Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...