Jump to content

Recommended Posts

Posted (edited)

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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