Personalising XTree - XTree GOLD TIP

When you install XTree Gold from the distribution discs, the program does some personalising: it asks you for your name and your company, and then enters these into the program so that they appear in the bottom line of the opening screen which is displayed when the program loads; the line starts with "Registered to: ". You can view this line while XTree is running by holding down the Ctrl and Alt keys simultaneously. Let's call this the personalise line.

This is not, however, the full extent of the personalising possible in XTree: you can change the personalise line to any text you want, so long as it is no longer than 80 characters. This is done by editing the file XTG.EXE, and of course this is best done in XTree itself.  But a word of caution: if you get it wrong, you can irretrievably damage the file, so make a backup copy before you start. Highlight XTG.EXE, hit C to copy the file as, say XTG.XEX to the current directory (just enter "."). Then you can go ahead with editing XTG.EXE without any worries.

To edit this file - or, come to that, any program file - you must NEVER use a text editor, but a specialised hex editor. And, would you believe it, there is one in XTree Gold: it resides in View.

Highlight XTG.EXE again, hit V and then H to view the file in hex mode. This shows the contents of the file as hexadecimal bytes in the centre of the screen, with the ASCII equivalents, where printable, on the right. To edit the file, first search for the string "Register" by hitting F9 or S. When you have found this, hit E to enter Edit mode, and tab to move the edit cursor to the ASCII block. You can now replace the text you find there by your own  personalised message, but be very careful not to go beyond the 80-column character limit. If you make a mess of it, just hit F8 to zap your changes and revert to the original text. When you have got it all right, hit Enter. Note that this is an irrevocable step, as the hex editor does not save a backup version of the file - that's why you backed up at the start. Now exit View.

You have now finished editing. To see the new message in action, quit XTree and restart it. But if, for some reason, XTree refuses to load, delete XTG.EXE, make a new copy of XTG.XEX as XTG.EXE and re-edit.

Tom Ruben

up to XTree tips index