Solved

Work in Borland C++3.1 with long file names

Posted on 1999-01-28
5
256 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
ID: 1185456
Thank you for reading this.
(Please excuse my English errors.)
0
 
LVL 1

Expert Comment

by:hustch
ID: 1185457
0
 
LVL 1

Accepted Solution

by:
newexpert earned 100 total points
ID: 1185458
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
ID: 1185459
How about accesing it.
0
 

Author Comment

by:DragosEugen
ID: 1185460
How about accesing it.
Should findnext do the job.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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…

920 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

14 Experts available now in Live!

Get 1:1 Help Now