The handle\demo folder contains files and folders saved with Internet Explorer's Save As facility.
The Snobol4 program _files.sno is capable of filtering the HTML files so they vill read their image (and other) files in folder _files\<longname> instead of <longname>_files. And the tool dir_file.exe is capable of creating a "_files" folder and moving the *_files folders to it and renaming them by deleting the extension "_files".
Windows 2000 and newer systems are sensitive about such saved HTML files. The systems associate them as pairs that should be moved or deleted together, and that can cause some troubles. However, if dir_file.exe is used first, this will break Windows' association, and the whole process should execute seamless.
Before you run the demo, you must extract snobol4.exe from Snobol4p.zip. If you will use snobol4.exe regularly, you should extract it to e.g. the Windows folder so it is always available. For this test, it is sufficient to extract it to the handle\demo folder.
Now, run dir_file.exe. Refuse the creation of a _files folder, accept changing the Current Working Directory, and browse to the handle\demo folder. Click OK, and now you should accept the creation of a _files folder.
You should now see this window (with whatever CWD is appropriate for your system):
Click on the Move button, and the folders will be moved and renamed. The images are now unavailable for the html pages.
Now is the time to run handle.exe. Doubleclick
in the Current Working Directory field (the Change button operates on a smaller part of
the file system) and browse to the handle\demo folder. Fill in Handles
fields as shown here:
Note 1: The Status window changes as you move from field to field. You can doubleclick in the # of files field to have the files recounted and listed in the status window again.
Note 2: If the files were copied from a CD (directly, not from a zip file), their ReadOnly attribute is set, and Handle will ignore them. Open their porperty box and clear the ReadOnly attribute.
A hint: You can enter
Another hint: If you place a checkmark in the Test checkbox and click Run, Handle will not call Snobol4, but show the commands that it will send to Snobol4.
Click on the Run button, and Handle / Snobol4 / _files in cooperation will filter your HTML files and write the result to the handle\demo\output folder created by Handle. All what is left is to move these files back in the handle\demo folder so they replace the original files. With these filtered files the links are reestablished between the HTML pages and their images. - And you have a much cleaner handle\demo folder. You can delete the Output folder and the Report.txt file created by Handle, and snobol4.exe if you placed it there (unless you want to run the Webinfo.sno demo, see Handle's Help file).
You will notice that _files.sno also inserted a link to the original page at the top of each page.
Happy Handling.
ReadMe | Handle | Snobol4 | HTML files | Demo | Installation