Solved

long file names for existing DOS C code?

Posted on 1999-01-25
2
182 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
Comment Utility
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
Comment Utility
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
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.

763 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

10 Experts available now in Live!

Get 1:1 Help Now