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

Asked

Viewed 1,717 times

3

I have in hand a legacy project that was developed initially in versions prior to Delphi 7, where it has a very large amount of Units(. pas) and forms(. dfm).
I have a problem because like the files .dfm are in binary format I can’t compare through the Systems of Version Control(Subversion) the difference between the current version of the file and the previous version. But converting these files . dfm to the text format, from the next revisions it is possible to make the comparisons normally.

How do I convert binary file to text file all these files. dfm at once?

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

2 answers

4


  • Copy the executable CONVERT.EXE inside the directory Bin from Delphi to the directory that is yours DFM;
  • Execute the command:

    convert.exe -t -i -s *.dfm
    

2

convert -t -i -s *.dfm

For all the directories

Browser other questions tagged

You are not signed in. Login or sign up in order to post.