Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Work in Borland C++3.1 with long file names

Posted on 1999-01-28
5
Medium Priority
?
264 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 300 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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…

722 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