rrangerrich2001 Posted February 16, 2022 Posted February 16, 2022 This might sound like a weird question, but is there a format to edit the XML file for a platform ( say Arcade.xml ) so that I can add games in bulk using a Powershell script? I think I have the format figured out, but I seem to be getting hung up on the <ID> number or something. Thanks, Rich Quote
JoeViking245 Posted February 16, 2022 Posted February 16, 2022 7 hours ago, rrangerrich2001 said: This might sound like a weird question, but is there a format to edit the XML file for a platform ( say Arcade.xml ) so that I can add games in bulk using a Powershell script? I think I have the format figured out, but I seem to be getting hung up on the <ID> number or something. Thanks, Rich It would, of course, be "safer" to have LaunchBox do the importing for you. But I do love a good tinkering-with-xml files. When it works. The <ID> for a new game is simply a random generated GUID. I haven't done a whole lot with PowerShell and xml's, but I know in C# it can be added with: IDelement.Value = System.Guid.NewGuid().ToString(); Quote
rrangerrich2001 Posted February 18, 2022 Author Posted February 18, 2022 Safe.............Shmafe. Where is the fun in that. 😄 Since it is just a random GUID I ended up using "1..n | % { [System.Guid]::NewGuid() }" in my powershell script and it worked great. Thanks! 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.