Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!smeans From: smeans@microsoft.UUCP (Scott MEANS) Newsgroups: comp.os.os2 Subject: Re: DosFindFirst with HPFS names ? Message-ID: <54039@microsoft.UUCP> Date: 11 Apr 90 19:50:24 GMT References: <90098.181854ARMENGAU@FRECP12.BITNET> Reply-To: smeans@microsoft.UUCP (Scott MEANS) Organization: Microsoft Corp., Redmond WA Lines: 23 In article <90098.181854ARMENGAU@FRECP12.BITNET> ARMENGAU@FRECP12.BITNET (Joel Armengaud) writes: >How can I get the long file names on an HPFS partition ? The way to notify the system that your app can cope with long filenames is rather obscure, but what you need to do is add the NEWFILES keyword to your .def file. Here is a sample def file: NAME LONGAPP NEWFILES DESCRIPTION 'App that deals with HPFS file names' Basically this just sets a bit in your exehdr, and if you have the markexe utility you can set this bit on any exe you want with the command: markexe lfns appname.exe (Caution: if the app doesn't really deal with long filenames this will probably cause some undesired effects, but it usually doesn't hurt too much to experiment.) -- /\/\ //\/\\ \>