Windows 7 Roadshow
  Search English (United States)  Svenska (Sverige)
Saturday, March 20, 2010 ..:: Home ::.. Register  Login
 Links Minimize

 Print   
 Tip on using bcdedit and GUIDs without copy and pasting the GUID... Minimize
Location: BlogsJohan Arwidmark    
Posted by: johan 11/10/2009

You might have noticed when you create entries in bcd using bcdedit, it assigns guid's to the entry, that you need to reference for any following settings you add.

By using a batchfile and som clever for, do command you don't have to type in the guid...

Sample batchfile

set BCD-File=C:\Demo\bcd

for /f "tokens=1-3" %%a in ('Bcdedit /store %BCD-File%  /create /d "WinPE x86" /application osloader') do set guid1=%%c

Bcdedit /store %BCD-File% /set %guid1% systemroot \Windows

Please note that the second line has been wrapped and should be entered as one command...

/ Johan

Permalink |  Trackback

  
Copyright Deployvista.com 2006-2008 (c)   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2010 by DotNetNuke Corporation