🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
5 messages
5 total messages Started by Juha Ruotsalainen ti Thu, 04 Apr 1991 11:32
What to do with HPFS?
#2507
Author: Juha Ruotsalainen ti
Date: Thu, 04 Apr 1991 11:32
9 lines
954 bytes
How can I get my program to show filenames which have more than 13
chars. I tried it with DosFindFirst and DosFindNext. DosFindFirst
returned error 206(=too long filename), when I instructed it to find
file called "sailing.ships", and when I use *.* my dear program found
only files with filenames whose length were under 13 chars. I have
OS/2 1.2 SE, Toolkit(IBM) 1.1 and MSC 6.0. Hope you understand what I
am tryin to say here.
Thanks in advance.
-ecs (so-ecs@stekt.oulu.fi)
Re: What to do with HPFS?
#2513
Author: Alan Ballard
Date: Fri, 05 Apr 1991 16:28
13 lines
1339 bytes
In article <SO-ECS.91Apr4133258@stekt2.oulu.fi> so-ecs@stekt2.oulu.fi (Juha Ruotsalainen ti) writes:
>How can I get my program to show filenames which have more than 13
>chars. 

You must mark the program as "long filename aware".  This can be done
either when you link the program by including NEWFILES on the NAME
statement in the modeule.def file used as input to link, or you can
do it after by using the exehdr program (option /NEWFILES) that comes with MSC.
Theres also a markexe program in the toolkit, I think. 
Alan Ballard                   | Internet: ballard@ucs.ubc.ca
University Computing Services  |   Bitnet: USERAB1@UBCMTSG
University of British Columbia |    Phone: 604-822-3074
Vancouver B.C. Canada V6R 1Z2  |      Fax: 604-822-5116
Re: What to do with HPFS?
#2514
Author: Bob Eager
Date: Fri, 05 Apr 1991 18:55
11 lines
1195 bytes
In article <SO-ECS.91Apr4133258@stekt2.oulu.fi>, so-ecs@stekt2.oulu.fi (Juha Ruotsalainen ti) writes:
> How can I get my program to show filenames which have more than 13
> chars. 

Make sure you use a linker .DEF file with the NEWFILES option on the NAME
statement. Or, use EXEHDR to mark the executable. In both cases you are
telling the system that your program is built to handle the new filenames.
-------------------------+-------------------------------------------------
Bob Eager                | University of Kent at Canterbury
                         | +44 227 764000 ext 7589
-------------------------+-------------------------------------------------
Re: What to do with HPFS?
#2517
Author: David Feustel
Date: Sat, 06 Apr 1991 21:54
6 lines
730 bytes
Ignore it until there is aN HPFS driver for dos so you can repair
files if OS/2 crashes and won't reboot. Have you tried reinstalling
all of OS/2 because the file system gets damaged and OS/2 won't boot?
-- 
David Feustel, 1930 Curdes Ave, Fort Wayne, IN 46805, (219) 482-9631
EMAIL: netcom.com
Re: What to do with HPFS?
#2518
Author: Tedd Meinersmann
Date: Mon, 08 Apr 1991 13:04
21 lines
1399 bytes
In <SO-ECS.91Apr4133258@stekt2.oulu.fi> so-ecs@stekt2.oulu.fi (Juha Ruotsalainen ti) writes:

>How can I get my program to show filenames which have more than 13
>chars. I tried it with DosFindFirst and DosFindNext. DosFindFirst
>returned error 206(=too long filename), when I instructed it to find
>file called "sailing.ships", and when I use *.* my dear program found
>only files with filenames whose length were under 13 chars. I have

Use DosFindFirst2 instead of DosFindFirst.  Also link the application
with a Module Definition File (.DEF) which contain the NAME line.  The
format of the NAME line is as follows:

NAME [appname] [apptype] [NEWFILES]

The NEWFILES option indicates the application supports long file
name and extended attributes.  Refer to MS help on the linker for 
more detail.
-- 
Tedd.Meinersmann@AtlantaGA.NCR.COM                           (404)-623-7349
2651 Satellite Blvd.
Duluth, GA  30136
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