I did search first actually, but the differing methods got a bit confusing
Here's the part that looks like what I intended:
One suggestion would be to use 1 bat file that takes arguments. You can setup your "Play" button or the "Click Event" for your category to to call the .bat file with an argument of the dvd number. I don't know if that information is in your database but based on your pic I'm guessing it might be "number"?
Your "play" event would then be
<Path>\SonyDiscStart.bat "%yourcategoryname>number%"
You may have to play around with the " above. May or may not need them.
And inside the bat file you would have
<Path>\sony_cx777es.exe COM1 36 %1 0 0 1
%1 would be replaced with whatever %number% is inside of Xlobby (disc number). This way you won't need individual .bat files for each movie and importing another one to Xlobby would just work provided you have the disc number in the DVD Profiler info. Hope this helps! Provided I understood what you are attempting to do!
What should I have in place of 'yourcategoryname'?
edit: 'movies' is that right?