OS/2, eCS & ArcaOS - Technical > Utilities
How to change several files "Class Type" in one shot
Lars:
I think you have given yourself the answer:
only if the object class is WPPngProgramFile (or XWPProgramFile if you do not have PNG desktop installed) will you see the module and resource info pages (for DLLS and EXEs) and the Program and Session pages (for EXEs).
Since I am a programmer, I find the Module and Resource pages for DLLs helpful but you can decide for yourself. My "AssocCls" tool would make a DLL file a XWPProgamFile/WPPngProgramFile object because that is the most specialized object class for a DLL file.
Martin Iturbide:
Hi Lars
--- Quote from: Lars on October 22, 2023, 03:19:16 pm ---..My "AssocCls" tool would make a DLL file a XWPProgamFile/WPPngProgramFile object because that is the most specialized object class for a DLL file.
--- End quote ---
I have just a little issue here. With "AssocCls" (the latest version on hobbes), if I drag a DLL file into it, it does not change it to "XWPProgramFile/WPPngProgramFile", it remains as WPPngDataFile. The only thing special on my ArcaOS 5.1 VM is that I like to install the full XWorkplace program.
Regards
Lars:
Looks like if a DLL is in use, it cannot be changed this way. Too bad.
Maybe you can try and run "unlock.exe" against the DLL you want to change before you attempt to drop it onto the AssocCls Object.
Lars:
Per coincidence I found the following: if you use EAUTIL.EXE to strip a file of all of its EAs, then, the object will automatically revert back to the most specialized class there exists when the object is again displayed in a folder.
To strip EAs of all .ICO files, do something like this: for %F in (*.ico) do @eautil.exe %F NUL /S
There is a drawback to this: because ALL EAs of a file are stripped in this way, so is the .LONGNAME EA which is the EA holding an objects long name/title.
So, the easiest thing would be to write a tool that strips a file of all its EAs except for the .LONGNAME EA (or equivalently, one that saves the .LONGNAME EA, strips off all EAs and restores the .LONGNAME EA).
Navigation
[0] Message Index
[*] Previous page
Go to full version