NAME filename95 SYNOPSIS Renames files whose names have been mangled by a Windows 95 machine back to their original (long) names from a full recursive directory listing generated in Windows 95 by a "DIR /S" command. DESCRIPTION The program traverses a directory to rename files based on a Windows recursive directory listing (this contains both the long and short filenames for each file). This can be useful when taking eg. an LhA archive that was created on a Windows 95 PC (with all filenames truncated to 8.3 letters in true MS-DOS style) to your Amiga. I wrote this program to transfer the contents of my Amiga Developers' CD from a PC to my Amiga without any decent compression software available (ie. packers that support the rare practice of human-readable filenames). It worked. WARNING: This program has only been tested in one case (albeit a big and complex one). There is no guarantee whatsoever that it won't do any damage to your system and data. THIS IS A VERY REAL CONSIDERATION in this case as the program is meant to touch a lot of files. Make sure you have backed up any sensitive data before using it, preferably even files that are nowhere near the area of operations. You never know. The program should work equally well under UNIX and AmigaOS, though only the latter has been tested. Also I've only had the chance to use it on a directory listing generated with the Dutch version of Windows 95. In a chivalrous effort to prevent communication between humans, Microsoft have carefully programmed their system software to not speak English unless you buy the Special English Version. Source in C is included, but ugly. In keeping with the subject matter this is a Poorly Written Program. Makefile for gcc included (type `make' to compile), plus SAS/C options file (type `sc fn95.c' to compile) and a StormC project file (double click to load, then do what comes natural). USAGE fn95 [] Where: is the output of a Windows 95 "DIR /S" command is the directory where your files are. If no is given, the current directory is assumed. No other options are currently available. So the normal procedure for transporting the contents of a directory MyDir from a Windows 95 machine to an Amiga would be something like this: ON THE WINDOWS SIDE: 1. (Curse your fate.) 2. Lha -r -x a FILES.LHA MyDir (pack directory) 3. Dir /S MyDir >NAMES.TXT (list filenames) 4. Move FILES.LHA A: (move archive to floppy) 5. Move NAMES.TXT A: (move dirlist to floppy) ON THE AMIGA SIDE: 6. (Breathe deeply. Insert floppy in drive.) 7. Mount PC0: (mount CrossDOS if needed) 8. Lha x PC0:FILES.LHA (unpack directory) 9. fn95 PC0:NAMES.TXT MyDir (restore filenames) NOTE that any errors that may occur while renaming will be dumped to the console but otherwise ignored. This is done to allow you to rename partially restored directories without aborting over a few missing files. The current version isn't very specific about the nature of the error either, just letting you know when a file couldn't be renamed. If you wish to use fn95 to rename an entire CD's worth of files where a few hundred files or a few big directories are missing, be prepared to scroll through a lot of messages. AUTHOR Jeroen T. Vermeulen, jtv@xs4all.nl / jvermeul@wi.leidenuniv.nl but please call me "Smith" when there's anybody watching. Copyright? No way. Do with it as you please, just don't remind me. HISTORY None as yet, but I'm confident that it will repeat itself.