EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: DAT (depreciated) -> XML  (Read 5084 times)

Cassiel

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 106
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 35.0 Firefox 35.0
    • View Profile
DAT (depreciated) -> XML
« 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...
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 112
  • Offline Offline
  • Posts: 3287
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 39.0.2171.99 Chrome 39.0.2171.99
    • View Profile
Re: DAT (depreciated) -> XML
« Reply #1 on: 16 January 2015, 12:11 »

use logiqx tools.....datutil
« Last Edit: 16 January 2015, 12:12 by Roman »
Logged

oxyandy

  • Member
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 269
  • Operating System:
  • Windows Server Home/Server 2003 Windows Server Home/Server 2003
  • Browser:
  • Firefox 32.0 Firefox 32.0
    • View Profile
    • .
Re: DAT (depreciated) -> XML
« Reply #2 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
« Last Edit: 16 January 2015, 15:27 by oxyandy »
Logged

Cassiel

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 106
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 35.0 Firefox 35.0
    • View Profile
Re: DAT (depreciated) -> XML
« Reply #3 on: 16 January 2015, 15:40 »

You are beautiful guys... thank you.   ;D
Logged

f205v

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 100
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Opera 12.15 Opera 12.15
    • View Profile
    • EMMA dumping team
Re: DAT (depreciated) -> XML
« Reply #4 on: 17 January 2015, 14:49 »

Does it work also in the other way round?
Transforming a new XMLdatfile to al old format one?
Logged
-------------
ciao
f205v

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 112
  • Offline Offline
  • Posts: 3287
  • Operating System:
  • Mac OS X Mac OS X
  • Browser:
  • Safari 8.0 Safari 8.0
    • View Profile
Re: DAT (depreciated) -> XML
« Reply #5 on: 18 January 2015, 09:57 »

havent checked it but I guess: yes
Logged

Cassiel

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 106
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 35.0 Firefox 35.0
    • View Profile
Re: DAT (depreciated) -> XML
« Reply #6 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).
Logged

oxyandy

  • Member
  • *
  • Karma: 5
  • Offline Offline
  • Posts: 269
  • Operating System:
  • Windows Server Home/Server 2003 Windows Server Home/Server 2003
  • Browser:
  • Firefox 32.0 Firefox 32.0
    • View Profile
    • .
Re: DAT (depreciated) -> XML
« Reply #7 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.131 seconds with 19 queries.

anything