You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
Hello, I am using Power Basic 3.0 and I am writting a program to
cataloge CD's, is there a way to read the dir of a CD in the
long file name format instead of the max 11 char. of dos?
PBLFN322.zip can also be found at Power Bssic's site
in the DOS Library. The top of the support area is at http://www.powerbasic.com/files/pub/
From there select PB\DOS, then LIBRARY. The only real odd
thing that I have noticed about PBLFN322 's files is that
the LfnAliasCreate function has an errant number for the
DOSError test to determine if it should go ahead and
create a new long filename. It may be my machine, yet it
gives a DOSError of 3 from trying LfnAlias to test for the
filename (the first step in LfnAliasCreate). That is suppose
be %ERROR_PATH_NOT_FOUND according to HANS LUNSING's work.
He has it checking for a value of 2, %ERROR_FILE_NOT_FOUND.
I just made it select for both cases '2,3'.
Another minor concern was that there was a $LINK to the
'bi' file while the 'BAS' file (that is to be $INCLUDEd in the
file you wish to add the functionality to) also had the 'bi'
file $INCLUDEd. Dropping the $LINK seemed to work for me.
I haven't tried all the routines so far, what I have are
quite helpful and have succeeded in making a utiliy program
for varifying and updating drives that are suppose to have
fully equal and ready 'backup' info on them. THE SHORT FILE
NAMES THAT WINDOWS USES ARE NOT ALWAYS THE SAME GIVEN THE SAME
LONG FILE NAME. A REAL CONCERN WHILE USING FC (the DOS File
compare utility.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment