🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
6 messages
6 total messages Started by Simon Elliott Tue, 06 May 2003 14:11
Create file on FAT16 without long file names
#16545
Author: Simon Elliott
Date: Tue, 06 May 2003 14:11
6 lines
1228 bytes
I want to create a file on a FAT16 formatted volume and only create the
8.3 format MS-DOS style file name. I don't want the extra directory
entry for the long file name. Does anyone know how to do this? 
-- 
Simon Elliott
http://www.ctsn.co.uk/
Re: Create file on FAT16 without long file names
#16546
Author: Andrue Cope
Date: Tue, 06 May 2003 14:29
15 lines
1542 bytes
Simon Elliott,

> I want to create a file on a FAT16 formatted volume and only create the
> 8.3 format MS-DOS style file name. I don't want the extra directory
> entry for the long file name. Does anyone know how to do this?
>

Just don't use file names that are non 8.3 compliant.

This isn't just a question of length as some characters (lower case 
letters for instance) will trigger long name entries. As long as you 
stick to upper case alphas and numerics you should be fine.

Andrue Cope
[Bicester, UK]
Re: Create file on FAT16 without long file names
#16549
Author: Pete Fraser
Date: Tue, 06 May 2003 15:43
10 lines
1258 bytes
"Andrue Cope" <not.a.valid@email.address.sorry> wrote in message
news:VA.00001c8e.06982ff7@email.address.sorry...
Simon Elliott,

> Just don't use file names that are non 8.3 compliant.

My brain hurts - too many negatives! <g> :)

Pete
Re: Create file on FAT16 without long file names
#16551
Author: Remy Lebeau (TeamB)
Date: Tue, 06 May 2003 16:37
12 lines
1354 bytes
"Simon Elliott" <simon@nospam.demon.co.uk> wrote in message
news:LIK3XIAkK8t+IwxA@courtlands.demon.co.uk...
> I want to create a file on a FAT16 formatted volume and
> only create the 8.3 format MS-DOS style file name. I don't
> want the extra directory entry for the long file name. Does
> anyone know how to do this?

Have a look at the GetShortPathName() function.


Gambit
Re: Create file on FAT16 without long file names
#16552
Author: Simon Elliott
Date: Tue, 06 May 2003 18:30
17 lines
1748 bytes
Andrue Cope <not.a.valid@email.address.sorry> writes
>> I want to create a file on a FAT16 formatted volume and only create the
>> 8.3 format MS-DOS style file name. I don't want the extra directory
>> entry for the long file name. Does anyone know how to do this?
>>
>
>Just don't use file names that are non 8.3 compliant.
>
>This isn't just a question of length as some characters (lower case 
>letters for instance) will trigger long name entries. As long as you 
>stick to upper case alphas and numerics you should be fine.

I'll give this a try. I was under the impression that CreateFile() made
a long file name entry even if this wasn't required. 
-- 
Simon Elliott
http://www.ctsn.co.uk/
Re: Create file on FAT16 without long file names
#16561
Author: Andrue Cope
Date: Wed, 07 May 2003 08:22
10 lines
1344 bytes
Simon Elliott,

> I'll give this a try. I was under the impression that CreateFile() made
> a long file name entry even if this wasn't required.
>

Shouldn't do. I've just checked under Win2K and it doesn't do it.

Andrue Cope
[Bicester, UK]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads