congnt92 Posted May 10, 2014 Share Posted May 10, 2014 (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% /fpauseNow 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 IDto 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 May 10, 2014 by congnt92 Link to comment Share on other sites More sharing options...
congnt92 Posted May 10, 2014 Author Share Posted May 10, 2014 Oh, I resolved my issue. Just use "for /f" command. 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