How to generate a manifest file like this ?

Discussion in 'Computer Programming, Emulation, and Game Modding' started by antiNT, Dec 8, 2017.

  1. antiNT
    OP

    antiNT a.k.a Johnny El Pollo Loco

    Member
    173
    74
    Sep 14, 2015
    Qatar
    Doha - Qatar
    Hello,
    I can't figure out how to generate a manifest file with the following structure : file path: md5 hash: file size (in bytes).
    I want to have a txt file who looks like this:
    Code:
    \ArtOfSword.exe:A3706D489D28D51D8D31A469E36B16BD:159232
    \ArtOfSword\ArtOfSword.uproject:D4159C36ECD291B911BDE5662426443E:367
    \ArtOfSword\AssetRegistry.bin:07C4B466A707B21363158F10EC59185E:2234259
    \ArtOfSword\CookedIniVersion.txt:4193F60033DA1B212101EC44F8F51EFB:1060868
    \ArtOfSword\Binaries\Win64\ArtOfSword-Win64-Shipping.exe:1613E07934BE9212BC3A3B2230C2B240:48417280
    \ArtOfSword\Config\DefaultEditor.ini:2441CE924D91D6479197CC615B7F213A:29919
    \ArtOfSword\Config\DefaultEditorPerProjectUserSettings.ini:F025A5F542DB294F479CF2E3B9ACB15E:73
    \ArtOfSword\Config\DefaultEngine.ini:EC738FB227EE884D4C0593E92F43AE55:19907
    If you know how to do this please tell me, thanks.
     
  2. Joom

    Joom  ❤❤❤

    Member
    4,485
    3,109
    Jan 8, 2016
    United States
    Shame you're not doing this on Linux, or some other UNIX system. It's super easy there.
    Save this as a script, chmod it to make it executable, and run it on whatever directory you want like so.
    Might work with Cygwin, but I don't have a Windows install to test on.
     
  3. Futurdreamz

    Futurdreamz GBAtemp Addict

    Member
    2,076
    1,237
    Jun 15, 2014
    Canada
  4. Joom

    Joom  ❤❤❤

    Member
    4,485
    3,109
    Jan 8, 2016
    United States
    Bash is easier, and more efficient, than batch, and should actually be able to be ran natively on Windows 10 provided Microsoft's Bash implementation isn't piss poor.