EMULAB Forum
clrmamepro [English] => clrmame Discussion => Topic started 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...
-
use logiqx tools.....datutil
-
Yep, as Roman says ::)
if not exist done md done
for %%a in ("*.dat") do (
datutil -f genericxml "%%a"
move datutil.dat "Done\%%~na.xml"
)
pause
-
You are beautiful guys... thank you. ;D
-
Does it work also in the other way round?
Transforming a new XMLdatfile to al old format one?
-
havent checked it but I guess: yes
-
Sorry to be a pain... how would I include MD5 too? It is already included in source DAT(s).
-
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.