EMULAB Forum

clrmamepro [English] => clrmame Discussion => Topic started by: Cassiel on 16 January 2015, 11:58

Title: DAT (depreciated) -> XML
Post by: Cassiel on 16 January 2015, 11:58
Hey guys... this isn't necessarily a specific CMP question, but does anyone know a way that I can (bulk) convert a bunch of DATs in legacy format to the new n' shiny XML format?

I don't see anything under Dat2Dir, and I had it in my head that Logiqx's DatUtil could do this but I think I am mistaken.

Any pointers much appreciated...
Title: Re: DAT (depreciated) -> XML
Post by: Roman on 16 January 2015, 12:11
use logiqx tools.....datutil
Title: Re: DAT (depreciated) -> XML
Post by: oxyandy on 16 January 2015, 15:26
Yep, as Roman says  ::)
Code: [Select]
if not exist done md done
for %%a in ("*.dat") do (
datutil -f genericxml "%%a"
move datutil.dat "Done\%%~na.xml"
)
pause
Title: Re: DAT (depreciated) -> XML
Post by: Cassiel on 16 January 2015, 15:40
You are beautiful guys... thank you.   ;D
Title: Re: DAT (depreciated) -> XML
Post by: f205v on 17 January 2015, 14:49
Does it work also in the other way round?
Transforming a new XMLdatfile to al old format one?
Title: Re: DAT (depreciated) -> XML
Post by: Roman on 18 January 2015, 09:57
havent checked it but I guess: yes
Title: Re: DAT (depreciated) -> XML
Post by: Cassiel on 19 January 2015, 17:13
Sorry to be a pain... how would I include MD5 too? It is already included in source DAT(s).
Title: Re: DAT (depreciated) -> XML
Post by: oxyandy on 22 January 2015, 17:22
f205v change --> genericxml -to- cm should work

Cassiel - not that I know of, I rarely ever use datutil - it's old and antiquated.. It chokes on utf-8
I wrote that mini batch as I replied, I don't do batch - so when needed I use CMP for single dat converts.
crc32 + sha1 is ample, I don't see the need for md5 as well, is over kill really.

If I needed to batch convert dats I would write something modern with full utf-8 support.