congnt92 Posted May 10, 2014 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
congnt92 Posted May 10, 2014 Author Posted May 10, 2014 Oh, I resolved my issue. Just use "for /f" command.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now