Solved

long file names for existing DOS C code?

Posted on 1999-01-25
2
202 Views
Last Modified: 2010-04-15
Code is Borland C v5.02 DOS with 8.3 file name restriction.
What is the easiest way to get long file names?
Is there a DOS extender that does this and is cheap?
I want to script the program so Windows is not my choice.
I will probably port to Linux but would still like version
 for the PC masses.

Ed
0
Comment
Question by:edscott
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
ID: 1258367
Yes, you can get the long file names. Use int 21h Function 7160h (Get Long Path Name).

Windows 9x provides a bunch of int 21h Function 71xxh that works with long file names. I would recommend you get the book Programmer's Guide to Windows 95. Chapter 24 talks about these functions and how to use them.
0
 

Author Comment

by:edscott
ID: 1258368
OK, that probably works.  I can isolate this non standard stuff and keep the code close to portable. It will be nice getting it into Linux and away from all these proprietary kludges.  Thanks for your response.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now