Solved

Work in Borland C++3.1 with long file names

Posted on 1999-01-28
5
263 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 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

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

623 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