Solved

long file names for existing DOS C code?

Posted on 1999-01-25
2
192 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
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…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

948 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

20 Experts available now in Live!

Get 1:1 Help Now