MakeTree is distributed as a .ZIP file. It contains executables for MS-DOS and MS-Windows V3.x and the full source. These executables will probably work under Windows 95, Windows 98 and Windows NT, but this has not been tested. If you want to employ MakeTree under Unix you have to recompile the program. Use the sources in the "source.tar" archive. Click here to download MakeTree.
MakeTree is freeware. The MakeTree application and its accompanying support files are provided "as is" and no warranty of fitness for a particular use or purpose is offered. The entire risk of using MakeTree is with you.
3. How to compile MakeTree
If you are using MS-DOS or MS-Windows V3.x, you can skip this step and use the executables of the distributionfile.
Different C-compilers have different executable names and different options. Check the documentation that came with your particular compiler first. We assume that your compiler is called by "cc".
- Unzip the distribution file.
- If you are using Unix, move the ".tar" file to your Unix computer and unpack it.
- If you are NOT using an ANSI-C compiler add option "-DARCHAIC".
- If you are compiling for a Unix platform add option "-DUNIX".
- In no event use option "-DCEXT".
- Enter "cc <options> maketree.c -o maketree".
- It should compile without errors. If it doesn't, try if adding "#define void" to "maketree.c" fixes the problem.
4. How to create "maketree.js"
IMPORTANT! If you are generating for Folder-Tree V2.x, you do NOT need "maketree.js" and you can skip both this step and the next! Please, continue with step 6.
MakeTree will function without the "maketree.js" file. However, in that case it will only generate the "generateTree()" function. MakeTree is capable to generate the complete "index.html" file with the embedded Folder-Tree script, but this requires a "maketree.js" file in the same directory where the MakeTree executable is located.
- You should have downloaded all the files that make up the Folder-Tree script. One of these files is "index.html".
- Copy this file to "maketree.js".
- Start up your favorite editor and load "maketree.js".
- Locate the "<title>(some string)</title>" entry and delete it entirely.
- In its place, insert a single line that reads "[TITLE]". Don't add additional spaces, tabs, or any other characters.
- Locate the "generateTree()" function and delete it entirely.
- In its place, insert a single line that reads "[TREE]". Don't add additional spaces, tabs, or any other characters.
- Do any additional editing and save it.
<!-- to hide script contents from old browsers
//each node in the tree is an Array with 4+n positions
// node is 0/1 when the node is closed/open
// node is 0/1 when the folder is closed/open
// node number of children that are documents
// node is the name of the folder
// node...node[4+n] are the n children nodes
// Building the data in the tree
// Auxiliary function to build the node
6. Using Windows 3.x
- Select 'File' on the menu.
- Choose 'Start' if you want to execute MakeTree only once; enter "maketree [options] <.mt file> <target file>"
- Choose 'Add' if you want to install MakeTree permanently; enter "maketree.exe [options] <.mt file> <target file>" in the commandline; select "maketree.ico" to add an icon. Clicking the icon in the Program Manager will generate the target file.
7. Using Windows 95, 98 or NT 4.0
- Start the Explorer. Point to START and click the right mouse button. 'Explorer'
should be one of the options.
- Browse until you get to the Menu where
you want to add MakeTree. You can select the proper menu by clicking
it in the left window of the explorer.
- The contents of the Menu
appear in the right window. Now click the right mouse button on the
background of the right window of the Explorer. One of the options
should be 'New'. Select 'Shortcut' from the submenu.
- Click 'Browse' at the bottom of the next popup screen and select 'MAKETREE.EXE'
- Something like 'c:\myfiles\maketree.exe' has appeared in one of the line.
Complete the line using this format. Spaces are important:
c:\myfiles\maketree.exe [options] <.mt file> <target file>
- Finish the procedure. After that you got a new menu
option. Whenever you click the icon the targetfile is (re)generated.
Please, take a look at the FAQ first. Support is given on a "when time is available" basis and can be terminated without notice. If you have any questions concering MakeTree, us. MakeTree is NOT supported by the author of Folder-Tree.