Author Topic: Change file "Type" property in batch  (Read 8340 times)

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4711
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Change file "Type" property in batch
« on: July 23, 2015, 10:56:53 pm »
Hi.

I want to change the file "type" property on some OS/2 files but I want to do it in batch instead of doing it one by one. (Check image)

Is there any utility that will allow me for example, send a command to remove to blank the "Type" property of the *.dll files in a directory. After that to send other command to put the "Dynamic Link Library" type to all the *.dll files. ??

Any tools out there to do this?

Regards
« Last Edit: July 24, 2015, 09:14:32 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Andreas Schnellbacher

  • Hero Member
  • *****
  • Posts: 827
  • Karma: +14/-0
    • View Profile
Re: Change file "Type" property in batch
« Reply #1 on: July 24, 2015, 12:36:58 am »
These file types are not .FILETYPE EAs. Via setting that EA you can override the previous behavior of existing files (after a WPS restart), but your inis will grow. The limitation of the ini size for keeping the system stable is one of OS/2's weak properties.

The default behavior of DLLs is defined in the WPS classes. (I just don't know which class applies here.) A better idea is to extend that class to get the wanted assignment. Therefore one needs SOM knowledge.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4711
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Change file "Type" property in batch
« Reply #2 on: July 27, 2015, 10:02:43 pm »
Thanks for the reply Andreas.

If anybody knows any tool to do this kind of change in batch (several files at once), instead of changing each other one by one from the GUI, please let me know.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.