How do I convert multiple ".dfm" files that are in binary format to text?

3

I have a legacy project that was initially developed in versions prior to Delphi 7, where it has a very large number of units (.pas) and forms (.dfm).
I am having a problem because as the .dfm files are in binary format I can not compare through Version Control Systems (Subversion) to difference between the current version of the file and the previous version. But by converting these .dfm files to text format , from the next revisions you can make the comparisons normally.

  

How do I convert from binary file to text file all these .dfm files in one go?

Note: I know that it is possible to convert the form to text through Delphi itself, by right clicking on the form and choosing "Text DFM" . But there are many, and if I did, it would take forever.

    
asked by anonymous 28.03.2014 / 17:52

2 answers

4
  • Copy the CONVERT.EXE executable from the Bin directory of Delphi to the directory whose DFM
  • Run the command:

    convert.exe -t -i -s *.dfm
    
28.03.2014 / 18:05
2
convert -t -i -s *.dfm

For all directories

    
28.03.2014 / 18:36