From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: Short file names Date: 25 Feb 2000 03:44:53 GMT Organization: Aachen University of Technology (RWTH) Lines: 28 Message-ID: <894trl$2o9$1@nets3.rz.RWTH-Aachen.DE> References: <38B5AA55 DOT DF883608 AT teleline DOT es> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: nets3.rz.RWTH-Aachen.DE 951450293 2825 137.226.32.75 (25 Feb 2000 03:44:53 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 25 Feb 2000 03:44:53 GMT User-Agent: tin/1.4-19991113 ("No Labels") (UNIX) (Linux/2.0.0 (i586)) Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Mariano Alvarez Fernández wrote: > Hello, do somebody know how to get/set the short file name in w9x when > you are using LFN's? In a nutshell: you *don't*. Short filenames are automatically generated by the system, and you're not given any influence over that process, except that you can disable *all* short file names gettting that pesky '~1' tail, even if they don't need them (see the 'NameNumericTails' trick). This is a rather severe design flaw in Windows' long filename implementation, IMHO. It causes all kinds of weird behaviour, inside Windows itself, too. > I want that, to make a simple migrate utility. Last week a friend bought > a new hard disk and he wanted to migrate all his files to the new drive. > I did that: [...] > But there was a problem, some short file names wasn't the > same, and some programs didn't work. Ever wondered why most backup programs aren't able to backup and successfully restore a working Windows 9x system? You've just found the reason. You need tools like 'DOSLFNBK' that store all the relations between long and short filenames, in special files, and only then can you copy the whole stuff, and use DOSLFNBK again to restore the long file names. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.