Long Name Utilities all items copyright 1996 M. Dew-Jones. DonationWare CompuServ:73312,2317 ---- Description ---- These utilities display and modify the long names created and used by Windows 95 even if you are not running Windows 95. They can be used to list, modify, save and restore long file names. DIR95 - directory list including Win95 long names SHOWLFN - tree style listing of files that have long names. Optionaly this listing is in the form of a batch file for later use in restoring the long names. SETLFN - create, modify, or remove the long name for a file. These are useful in an evironment where not all the PCs are running Windows 95. They can also be used in restoring Windows 95 files with non-Windows 95 backup software. (However a full restore of Windows 95 using non-Windows 95 utilities has not been tested.) These utilities can also be used within Windows 95 with some limitations. Long name listing is always possible, but modifying long names in Windows 95 can only be done from within MS-DOS mode after the LOCK command has been issued. These utilities have been tested on IBM DOS 4.0a, MSDOS 5.0, 6.x and Windows 95 DOS. They should also work on DOS 3.31 or higher. They function on local hard disks and floppy disks. BUGS: o There is no unicode translation. The upper byte of unicode characters are ignored or set to zero. o This version of SETLFN will not extend the directory size. If the current directory does not have enough free space for the long name being set then the command indicates this and fails. This will be fixed when I have time. o No validity checks are made for names set by SETLFN. Of particular note is that the long name should have the same first letter as the short name or Windows 95 will not display the name. Windows 95 will list other invalid names though the behaviour when accessing them has not been tested. --- Warning --- Use these routines entirely at your own risk. They have been tested on a limited number of configurations. SETLFN is the command that writes to disk, so especially beware of this command. I suggest that you test SETLFN on your configuration after doing a full backup, or after doing a from-scratch install. This way you can recover if there are any errors caused. --- DonationWare ---- "DonationWare" - like shareware except you are not _obligated_ to pay me. However I appreciate it when someone does pay me for using utilities I create, and this inspires me to create more utilities and better versions. Suggested registration is a mere $15 (canadian) for personal use, sent by money order to Malcom Dew-Jones 148 Ivy Cresent Ottawa Canada K1M 1X6 For use in a shared environment send something appropriate to the size of your site. ---- Usage notes and examples ---- general notes o Use the /? option for full usage details of each command. o Command options can be abreviated. The shortest abreviation possible is indicated by the upper case characters in the option. o Invalid options are simply ignored. -- Dir95 o use the more command for paging. Most other relevent and expected options are now implemented. o In addition to supporting the extended wild cards of Windows 95, the wild cards of Dir95 also support single character range sets, denoted by the use of the < and > characters. For example DIR95 "<1-9>"*.* and DIR95 "<123456789>"*.* will both list all files starting with digits 1 through 9. -- ShowLFN o the /Script option changes the display into a batch file. Use DOS redirection to pipe the output into a file for later use. ex. SHOWLFN /S C:\ > restore.bat o ShowLFN/Script can be used while moving a directory tree as follows. Save the output from ShowLFN oldroot /script and then use a text editor with search and replace to modify the "CD oldroot" command to use the new root. -- SetLFN o This version will not extend the directory size, so it is possible for it to fail. When this happens it displays an error message indicating the problem. I plan on fixing this. o No check is made for valid file names. You can set anything you wish as the long name. The first letter of the long name should be the same as in the short name or Windows 95 will not display or use the long name. Windows 95 will display invalid long names but I don't know what happens if you try to access them via the long name. --- Distribution --- Anyone is free to distribute this package, as long as the executable programs are not altered in any way, and the other files in this package (such as this one) are not altered if distributed, and as long as the receiver would reasonably understand that any fee paid to receive any program was a distribution fee and not a payment for the program itself, and as long as the receiver would reasonably understand that the distributor does not own the programs in this package but is simply distributing them, and that no false representations are made about my (Malcom Dew-Jones) affiliations with the distributor. I appreciate being informed about the distribution of this package, but I do not required this.