The problem with a batchfile is that you need to know the parent/clone relationship of sets and the exact storing position of each chd file.
So you need to provide the clone chd filename and the belonging parent chd filename to chdman to create a delta out of it. There is no rule in naming/storing, so a general batchfile is not possible without having the parent/clone relationship accessible from somewhere and the relations can theoretically change with each MAME version.
So...it sounds more like a job for a tool which knows the current -listxml/-listsoftware output, runs through folders collecting chd sha1s, finding the pairs in the xml data and creates an output (either a batchfile or directly calling chdman)....and surely it should also support revert in case a delta chd lost its parent...
|