Solved

Work in Borland C++3.1 with long file names

Posted on 1999-01-28
5
255 Views
Last Modified: 2010-04-16
I am working on a project for my school please don't ask why in Borlnad C++3.1 for Dos.It's very importat for me to menage this. All that I want is how to acces the clusters
or am another posibility to do this for creating a directory with long file name in Dos, rename it, deleting it and of couse the posibility to print on the screen. This is all. If someone know the answer to this I would apreciate if he could delever me the answer.
0
Comment
Question by:DragosEugen
  • 3
5 Comments
 

Author Comment

by:DragosEugen
Comment Utility
Thank you for reading this.
(Please excuse my English errors.)
0
 
LVL 1

Expert Comment

by:hustch
Comment Utility
0
 
LVL 1

Accepted Solution

by:
newexpert earned 100 total points
Comment Utility
How to create long file names:
1. Create the directory entry with the short file name (eg "Progra~1")
2. In the following directory entries put down the rest of names (eg "m Files", and set all of their attributes, ie FA_RDONLY+FA_HIDDEN+FA_SYSTEM+FA_LABEL+FA_DIREC+FA_ARCH)

In Borland C++ you can use _dos_setattrib() function to do the job.
0
 

Author Comment

by:DragosEugen
Comment Utility
How about accesing it.
0
 

Author Comment

by:DragosEugen
Comment Utility
How about accesing it.
Should findnext do the job.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

762 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

6 Experts available now in Live!

Get 1:1 Help Now