Jump to content
LaunchBox Community Forums

Editing XML for a Platform to Add new games using a script


rrangerrich2001

Recommended Posts

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();

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...