Announcement

Collapse
No announcement yet.

Long file names

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Long file names

    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?

    Dave

    #2
    Once again, the ABS site comes to the rescue:
    http://www.basicguru.com/files/abc/abc9809/pblfn322.bas http://www.basicguru.com/files/abc/abc9703/pblfn32.bas


    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


      #3
      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.

      Thanks for the help,

      Sincerely,

      GREGORY D. MELLOTT

      ------------------

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎